🛠️TokenBalance

Description

Action ID: 0x019d9978

Action that returns balance of a token for a given address in current block

SDK Action

const tokenBalanceAction = new dfs.actions.basic.TokenBalanceAction(tokenAddr, holderAddr);

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param tokenAddr Address of the token we're inquiring for
    /// @param holderAddr Address of the token holder we're inquiring for
    struct Params {
        address tokenAddr;
        address holderAddr;
    }

Return value:

return bytes32(inputData.tokenAddr.getBalance(inputData.holderAddr));

Events:

Last updated