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
  3. Check Delegations

checkDelegateForAll

Check if `to` is a delegate of `from` for the entire wallet

checkDelegateForAll( to: string, from: string, rights?: string ) ⇒ Promise< boolean >

Returns true if delegate is granted to act on the from's behalf

to

The delegated address to check

from

The potential address who delegated rights

rights (optional)

Specific rights to check for, pass nothing to ignore subdelegations and check full delegations only

Usage Example

const to = "0x0000000000000000000000000000000000000003";
const from = "0x0000000000000000000000000000000000000001";
const isDelegateForAll = await v2.checkDelegateForAll(to, from);

/* returns example

true

*/

PreviousCheck DelegationsNextcheckDelegateForContract

Last updated 1 year ago