Comment on page

Transaction Data

What is this request?

You can see more detailed transactions with this service.

What can I do with this service?

With this service, you have a more detailed transaction. You can see what was done in the transaction and with which contract this transaction was run.

Tutorial

var axios = require('axios');
axios.get('https://api.getdefy.co/v1/o/query/transaction', {
params: {
hash: '0xaef1b250f3c09dde83c5c040c4b0fa2363db5b35980e74cd72560d509b365299',
chain: 'eth',
language: 'en',
key: 'API_KEY',
},
})
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Options

  • hash (required): A transaction hash (i.e. 0x1a2b3x...).
  • chain (required): Blockchain network name. Can be eth, bsc, avax and matic.
  • key (required): API key for requests.
  • language (optional): Service language. Default value is en. Can be en or tr.

Method and Tx Types

  • Methods: TRANSFER, APPROVAL, MINT, SWAP, CLAIM, STAKE, DEPOSIT, WITHDRAW, UNLOCK, NFT_SWAP, OPENSEA_NFT_SWAP or other contract methods.
  • Tx Types: NATIVE, ERC20, ERC721 and ERC1155
get
https://api.getdefy.co/v1/o
/query/transaction
Request Example
Parameters
Query
key*
API Key
chain*
Network Info
hash*
Transaction Hash
language
Can be: "en", "tr"
Responses
200: OK
400: Bad Request