@hashgraph/sdk
    Preparing search index...

    Class TokenAllowance

    Represents a token allowance granted to a spender account by an owner account.

    The TokenAllowance class manages the permissions for one account to spend a specified amount of tokens on behalf of another account. It includes details about the token, the spender, the owner, and the amount allowed.

    Index

    Properties

    amount: null | Long

    The current balance of the spender's token allowance. NOTE: If null, the spender has access to all of the account owner's NFT instances (currently owned and any in the future).

    ownerAccountId: null | AccountId

    The account ID of the owner of the hbar allowance.

    spenderAccountId: null | AccountId

    The account ID of the spender of the hbar allowance.

    tokenId: TokenId

    The token that the allowance pertains to.

    Methods