Get transaction history by transaction hash. Transaction history is divided into KAIA (=KLAY) transfer (KlayTransfer
), FT transfer (FtTransfer
), NFT transfer (NftTransfer
), MT transfer (MtTransfer
). For FT, NFT, MT transfers, history of KlayTransfer
will be included in the result. KlayTransfer
included in FT, NFT, MT transfers may have a value
of 0. For more details, please refer to GET /v2/transfer
. The term klay
remains as before for compatibility.
curl -i -X GET \ -u <username>:<password> \ 'https://th-api.klaytnapi.com/v2/transfer/tx/{transaction-hash}' \ -H 'x-chain-id: string'
{- "items": [
- {
- "transferType": "ft",
- "transaction": {
- "from": "0x5bf30ff4a1a3a905531c5e1b52c635892a9fc28d",
- "fee": "0x48abe561cf400",
- "transactionHash": "0x9fb236689b26fc8b8a938a8eb2b7e5a6afc1c7a837c61751f08eac7358db8d73",
- "blockNumber": 5312085,
- "typeInt": 49,
- "timestamp": 1597649114,
- "value": "0x0",
- "feePayer": "0xacb22916b804ac088c61c8711ec196b518f2e7fc",
- "feeRatio": 0
}, - "contract": {
- "address": "0xb1a7abe0c5a9e06cc7585a435e74976d2dee07f3",
- "name": "BlockchainPetToken",
- "symbol": "BPT",
- "decimals": 2
}, - "from": "0x5bf30ff4a1a3a905531c5e1b52c635892a9fc28d",
- "to": "0xeb7f7926cc4f866cec135728d35a7531c1d12791",
- "value": "0x3e8",
- "formattedValue": "10"
}, - {
- "transferType": "klay",
- "from": "0x5bf30ff4a1a3a905531c5e1b52c635892a9fc28d",
- "fee": "0x48abe561cf400",
- "status": 1,
- "to": "0xb1a7abe0c5a9e06cc7585a435e74976d2dee07f3",
- "transactionHash": "0x9fb236689b26fc8b8a938a8eb2b7e5a6afc1c7a837c61751f08eac7358db8d73",
- "transactionIndex": 1,
- "blockNumber": 5312085,
- "typeInt": 49,
- "timestamp": 1597649114,
- "value": "0x0",
- "feePayer": "0xacb22916b804ac088c61c8711ec196b518f2e7fc",
- "feeRatio": 0
}
]
}