Retrieve transaction

Retrieves transaction result with transaction hash value. You can find out whether the transaction was successful by checking the status field in the response.

Request
Security:
path Parameters
transaction-hash
required
string

Transaction hash value

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Responses
200

The request is successful.

400

The request is not valid.

get/v2/tx/{transaction-hash}
Request samples
curl -i -X GET \
  -u <username>:<password> \
  'https://wallet-api.klaytnapi.com/v2/tx/{transaction-hash}' \
  -H 'x-chain-id: string'
Response samples
application/json
{
  • "blockHash": "0x205c2537286c8ac7889961e39c438f868385238c202deaa4398f85a3c140810c",
  • "blockNumber": "0x2e5a",
  • "codeFormat": "0x0",
  • "contractAddress": "0x0a868e321c0c689c2093001fdf7ecdb9d3ed79e1",
  • "feePayer": "0x85b98485444c89880cd9c48807cef727c296f2da",
  • "feePayerSignatures": [
    ],
  • "from": "0x60b5c6b28a8a0339a43a0acd5f65eede5f68cf0e",
  • "gas": "0x895440",
  • "gasPrice": "0x5d21dba00",
  • "gasUsed": "0x25de7",
  • "hash": "0x3d13d31bd4b1e6ca37c4e73cfcb0ee4374a06290e84c6b01a41143c2cc2fa322",
  • "humanReadable": false,
  • "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582064856de85a2706463526593b08dd790054536042ef66d3204018e6790a2208d10029",
  • "logs": [ ],
  • "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  • "nonce": "0x0",
  • "senderTxHash": "0x01bd21f13617fc725b80975a68ff1bc2002aec66277e536e5643a8791518c3df",
  • "signatures": [
    ],
  • "status": "Committed",
  • "to": null,
  • "transactionHash": "0x3d13d31bd4b1e6ca37c4e73cfcb0ee4374a06290e84c6b01a41143c2cc2fa322",
  • "transactionIndex": "0x0",
  • "type": "TxTypeFeeDelegatedSmartContractDeploy",
  • "typeInt": 41,
  • "value": "0x0",
  • "effectiveGasPrice": "0xba43b7400"
}