Fetch Delegations

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

Returns an array of Delegation items

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

Returns an array of Delegation items

Usage Example

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

Last updated