Skip to main content

Get allowance by owner, spender, token, and block number for a given network.

GET 

/:network/allowance/single

Get allowance by owner, spender, token, and block number for a given network.

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

Query Parameters

    owner stringrequired

    The wallet address or ENS name of the owner.

    spender stringrequired

    The wallet address or ENS name of the spender.

    token_address stringrequired

    The contract address of the token.

    block_height number

    Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.

    date string

    Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.

    projectId stringrequired

    The id of your project. Can be found in your Histori dashboard.

Responses

The allowance data.

Schema

    network_name stringrequired

    Blockchain network name For the requested query

    chain_id numberrequired

    The chain ID of the network.

    token_address stringrequired

    The contract address of the token in hexadecimal format.

    token_name stringrequired

    The name of the token.

    token_symbol stringrequired

    The symbol of the token.

    token_type stringrequired

    The ERC standard of the Token (erc20 or erc777)

    owner stringrequired

    The address of the owner.

    spender stringrequired

    The address of the spender.

    allowance string

    The allowance amount of the token, as a string. The amount is in the smallest unit of the token.

    allowance_eth string

    The allowance amount of the token, as a string, denominated in ether

    checked_at_block numberrequired

    The block number for which the allowance is requested.

    checked_at_date stringrequired

    Timestamp for which the allowance is queried (ISO 8601 format).

Loading...