Average Token Hold Time

Returns the average ERC tokens hold time in a wallet.

GraphQL Query

query TokensAverageHoldTime($walletAddress: String!){
    tokensHoldTime(walletAddress: $walletAddress){
        walletAddress
        averageHoldTime
    }
}

Variables

{
    "walletAddress": String // Wallet Address
}

Response

{
    "data": {
        "walletHoldings": {
            "walletAddress": String, // The wallet address
            "erc20TokensList": Array<{
                "chain": String, // Blockchain network of the token
                "tokenAddress": String, // Contract address of the token
                "tokenName": String, // Name of the token
                "tokenSymbol": String // Symbol of the token
            }>,
            "erc721TokensList": Array<{
                "chain": String, // Blockchain network of the token
                "tokenAddress": String, // Contract address of the token
                "tokenName": String, // Name of the token
                "tokenSymbol": String // Symbol of the token
            }>,
            "erc1155TokensList": Array<{
                "chain": String, // Blockchain network of the token
                "tokenAddress": String, // Contract address of the token
                "tokenName": String, // Name of the token
                "tokenSymbol": String // Symbol of the token
            }>
        }
    }
}

Example

Input
{
    "walletAddress": "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"
}
Output
{
    "data": {
        "tokensHoldTime": {
            "walletAddress": "0x690b9a9e9aa1c9db991c7721a92d351db4fac990",
            "averageHoldTime": 37887018.43
        }
    }
}

Last updated