API Reference

get address transactions - Enhanced APIs

Get all transactions for an address.

This endpoint is supported on the following chains and networks:

  • Conflux: Core
  • Ethereum

Parameters

  • fromBlock: [int64] The minimum block number from where to get the transactions.
  • toBlock: [int64] The maximum block number from where to get the transactions.
  • address:[string] address (required)

Returns

  • gasPrice: [int]
  • hash:_[string] _transaction hash
  • blockHash:_[string] _block hash
  • blockNumber: _[int] _the number of block
  • transactionIndex: [int] the number of transaction index
  • timestamp: [int]
  • from:[string] address hash
  • to[string] address hash
  • value: [int]
  • gas: [int]
  • input[string]
  • receipt[string]

Example

Request

curl --location --request GET 'https://eth-mainnet.unifra.io/v1/de06bac5217b49c3af79fd3aeb06a87b/enhanced-api/0x3cD751E6b0078Be393132286c442345e5DC49699/transactions'

Response

{ "data": [ { "gasPrice": 91000000000, "hash": "0x253fa02df0bc6785f6971b31738d9cc55e8c0cfa82dea9973c7caefa8d03d3ab", "blockHash": "0x52684650237c02a467c86d343cc15c17fe8dfba209a0e60e7f98e9c697528d0c", "blockNumber": 12324275, "transactionIndex": 107, "timestamp": 1619550896, "from": "0xe85f78abb12594f3e73dc68bae19d216ba328697", "to": "0x3cd751e6b0078be393132286c442345e5dc49699", "value": 5000000000000000000, "gas": 21000, "input": "0x", "receipt": { "status": 1, "contractAddress": "0x0", "gasUsed": 21000 }, "date": "2021-04-27 19:14:56 UTC" }, { "gasPrice": 59000000000, "hash": "0x825171ee3a5f853cfac29a868ac6961358d6cc5a9fef5270f2e3e289c878416d", "blockHash": "0x8027d446cf42919a0670255ac5a9aca7a7e3e6e6b64e2b59b648618ab21b6fe4", "blockNumber": 12328813, "transactionIndex": 144, "timestamp": 1619611052, "from": "0x9e35c78d392586baba578bd7ec0125a98b9eff42", "to": "0xdac17f958d2ee523a2206206994597c13d831ec7", "value": 0, "gas": 250000, "input": "0xa9059cbb0000000000000000000000003cd751e6b0078be393132286c442345e5dc49699000000000000000000000000000000000000000000000000000009184d90cb80", "receipt": { "status": 1, "contractAddress": "0x0", "gasUsed": 48233, "logs": [ { "logIndex": 123, "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x0000000000000000000000009e35c78d392586baba578bd7ec0125a98b9eff42", "0x0000000000000000000000003cd751e6b0078be393132286c442345e5dc49699" ], "data": "0x000000000000000000000000000000000000000000000000000009184d90cb80" } ] }, "date": "2021-04-28 11:57:32 UTC" }, { "gasPrice": 59000000000, "hash": "0x5ac1651f4198904dd963c26891479952e1fe10dbe7c698e292f3d21f254c4dc1", "blockHash": "0x8027d446cf42919a0670255ac5a9aca7a7e3e6e6b64e2b59b648618ab21b6fe4", "blockNumber": 12328813, "transactionIndex": 145, "timestamp": 1619611052, "from": "0xcbb1168048d2df6ee07b4de648bf21402846e8f8", "to": "0xdac17f958d2ee523a2206206994597c13d831ec7", "value": 0, "gas": 250000, "input": "0xa9059cbb0000000000000000000000003cd751e6b0078be393132286c442345e5dc496990000000000000000000000000000000000000000000000000000048a76634484", "receipt": { "status": 1, "contractAddress": "0x0", "gasUsed": 31133, "logs": [ { "logIndex": 124, "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000cbb1168048d2df6ee07b4de648bf21402846e8f8", "0x0000000000000000000000003cd751e6b0078be393132286c442345e5dc49699" ], "data": "0x0000000000000000000000000000000000000000000000000000048a76634484" } ] }, "date": "2021-04-28 11:57:32 UTC" },
Path Params
string
required
string
required
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json