Summary

    The Tokenview Developer API are provided as a free service to our clients. Please just select the API to get real-time multi-currency network data according to your needs.

    In order to guarantee the experience of service, we support a rate limit of 1 request/min (exceed and you will be blocked). To use the API service without restriction, please Apply For Permission. To request the API。you need to mark “Powered by Tokenview.io””.


    *Attention:API response types are JSON.,As follow:

    Request parameter

    code: Return result type: Number - 1 = Success, not 1 = Error

    msg: Return result type: String - Message reminder, return “成功” or the wrong info.

    data: Return result type: Array - The return fields are dependent on specific API examples.

    Address

    · Address Info

    Search for wallet address, the return result is(are) some recent transaction(s) of this address.

    Request URL

    Request parameter

    { Address } : Request typeString - e.g.1PqQfh7u5dw6hZnmHc9pVrZzdAWA5GiLsX

    Return field

    *Attention:Available:BTC,BCH,DOGE,DASH,ZCASH,LTC

    Return field Data type Parameter specification
    hash String Address
    network String Coin type
    txCount Number Transaction count
    spend Number Total sent
    receive Number Total received
    txs Array Recent transaction details
    txs.height Number Block height
    txs.time Number Time (UTC)
    txs.txid String Transaction hash
    txs.fee String Transaction fees
    txs.inputs.address String Inputs address
    txs.inputs.value String Inputs value
    txs.outputs.address String Outputs address
    txs.outputs.value String Outputs value
    View code example

    Return field

    · Available:ETH,ETC

    Return field Data type Parameter specification
    hash String ETH Address
    normalTxBalance String Normal transaction counts
    normalTxCount Number Normal transaction counts
    callTransBalance String Call transfer balance
    callTransCount Number Call transfer counts
    txs Array Recent transaction details
    txs.blockHash String Block hash
    txs.time Number Time (UTC)
    txs.txid String Transaction hash
    txs.fee String Transaction fees
    txs.block_no Number Block height
    txs.gasPrice Number Gas price, Unit: wei
    txs.from String Sent from
    txs.gasLimit Number Gas limit
    txs.value Number Transaction amount
    txs.to String Receive from
    txs.gasUsed Number Gas used
    View code example

    · Address Balance

    The balance of an address of a cryptocurrency

    Request URL

    Request parameter

    {coin} : Request typeString - Currency abbreviation[ETH,ETC,BTC,BCH,DOGE,DASH,ZCASH,LTC]

    {address} : Request typeString - e.g.1PqQfh7u5dw6hZnmHc9pVrZzdAWA5GiLsX

    Return field

    Return field Data type Parameter specification
    data String
    View code example
    Transaction

    · Transaction Info

    Search for transaction hash,the return result is the info of this transaction.

    Request URL

    Request parameter

    { Transaction hash } : Request typeString - e.g.9293869acee7d90661ee224135576b45b4b0dbf2b61e4ce30669f1099fecac0c

    Return field

    · Available:BTC,BCH,DOGE,DASH,ZCASH,LTC

    Return field Data type Parameter specification
    blockHash String Block hash
    height Number Block height
    time Number Time(UTC)
    confirmations Number Confirmations
    txid String Transaction hash
    fee String Transaction fees
    inputs Arrary Inputs
    inputs.address String Inputs address
    inputs.value String Inputs value
    outputs Arrary Outputs
    outputs.address String Outputs address
    outputs.value String Outputs value
    View code example

    Return field

    · Available:ETH,ETC

    Return field Data type Parameter specification
    time Number Time(UTC)
    txid String Transaction hash
    fee String Transaction fees
    confirmations Number Confirmations
    block_no Number Block height
    gasPrice Number Gas price
    from String Sent from
    gasLimit Number Gas limit
    value Number Receive value
    to String Receive from
    gasUsed Number Gas used
    tokenTransfer Array Token transfer
    tokenTransfer.token String Token address
    tokenTransfer.from String Token sent from
    tokenTransfer.to String Token receive from
    tokenTransfer.value String Token transaction counts
    callTransfer Array Call transfer
    callTransfer.from String Internal sent from
    callTransfer.to String Internal receive from
    callTransfer.value Number Internal ETH transaction value
    callTransfer.gasUsed Number Gas used
    callTransfer.gasLimit Number Gas limit
    View code example

    · Transaction Confirmations

    Search for the confirmations of a transaction

    Request URL

    Request parameter

    {coin} : Request typeString - Currency abbreviation[ETH,ETC,BTC,BCH,DOGE,DASH,ZCASH,LTC]

    {txid} : Request typeString - e.g.2798f70cb126ed98f726749fa7632499072ba6a3561c11f3103151bf5b884f68

    Return field

    Return field Data type Parameter specification
    network String Currency abbreviation
    txId String Transaction hash
    confirmation Number Confirmations
    View code example

    · Transaction Amount

    The transaction amount of a transaction hash of a cryptocurrency.

    Request URL

    Request parameter

    {coin} : Request typeString - Currency abbreviation[ETH,ETC,BTC,BCH,DOGE,DASH,ZCASH,LTC]

    {txid} : Request typeString - e.g.2798f70cb126ed98f726749fa7632499072ba6a3561c11f3103151bf5b884f68

    Return field

    Return field Data type Parameter specification
    data String Transaction amount
    View code example
    Block

    · Block Info

    Search for block hash or block height, the return result is the info of this block.

    Request URL

    Request parameter

    { Block height }: Request typeNumber - e.g.50000

    { Block hash } : Request typeString - e.g.aeb1084f8372c04792cf7bedd1d884c19d8194b2cdfc03a386a504e2496d8693

    Return field

    Return field Data type Parameter specification
    block_no String Block height
    time Number Time (UTC)
    size Number Block size (byte)
    blockhash String Block hash
    reward Number Reward for miner
    View code example

    · Latest Block

    The latest block of a cryptocurrency

    Request URL

    Request parameter

    {coin} : Request typeString - Currency abbreviation[ETH,ETC,BTC,BCH,DOGE,DASH,ZCASH,LTC]

    Return field

    Return field Data type Parameter specification
    data Number Lastest block
    View code example
    Data

    · Market Change

    The big amount transaction of a cryptocurrency

    Request URL

    Request parameter

    {coin} : Request typeString - Currency abbreviation[ETH,ETC,BTC,BCH,DOGE,DASH,ZCASH,LTC]

    Return field

    Return field Data type Parameter specification
    txId String Transaction hash
    amount Number Transaction amount
    height Number Block height
    addr String Address
    time Number Time (UTC)
    View code example