Delegate
  • Overview
  • Delegating a wallet
  • Comparison with Others
  • FAQ
  • Audits
  • Integrate In Your Project
    • Smart Contract Examples
    • Token Ownership Claiming
  • Upgrade to V2
    • V2 is a Separate Contract
    • V1 → V2 migration
    • Batching
    • Subdelegations
  • Advanced Use Cases
    • Shadow Delegation
  • Delegate Market
    • Overview
    • FAQ
  • Gaming
    • Delegate for Gaming
  • Technical Documentation
    • Delegate Registry
      • Contract Addresses
      • IDelegateRegistry.sol
    • Javascript SDK
      • Installation / Importing
      • Setup
      • Check Delegations
        • checkDelegateForAll
        • checkDelegateForContract
        • checkDelegateForERC721
        • checkDelegateForERC1155
        • checkDelegateForERC20
      • Fetch Delegations
      • Delegate/Revoke
        • delegateAll
        • delegateContract
        • delegateERC721
        • delegateERC1155
        • delegateERC20
    • REST API
      • v2
      • v1
  • Resources
    • Media Kit
    • Github
    • Twitter
    • Live Stats
  • V1 Registry (Legacy)
    • Technical Documentation
Powered by GitBook
On this page
  1. Technical Documentation
  2. Javascript SDK

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);

PreviouscheckDelegateForERC20NextDelegate/Revoke

Last updated 1 year ago