Allow the delegate to act on behalf of `msg.sender` for all contracts

delegateAll( to: string, rights: string, enable: boolean ) ⇒ Promise< TransactionHash >

Returns the transaction hash of the submitted delegation.


The address to act as delegate


Specific subdelegation rights granted to the delegate, pass "" to encompass all rights

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const tx = await v2.delegateAll(to, "", true);

Last updated