Fetch Delegations

getIncomingDelegations( to: string ) ⇒ Promise< V2Delegation[] >

Returns an array of Delegation items

to

The address to retrieve delegations for

getOutgoingDelegations( from: string ) ⇒ Promise< V2Delegation[] >

Returns an array of Delegation items

from

The address to retrieve delegations for

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const incoming = await v2.getIncomingDelegations(to);
const outgoing = await v2.getOutgoingDelegations(from);

Last updated