delegateERC20

Allow the delegate to act on behalf of `msg.sender` for a specific amount of ERC20 tokens

delegateERC20( to: string, contract: string, rights: string, amount: number ) ⇒ Promise< TransactionHash >

Returns the transaction hash of the submitted delegation.

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const contract = "0x0000000000000000000000000000000000000002";
const amount = 1;
await v2.delegateERC20(to, contract, "", amount);

Last updated