get https://eth-mainnet.unifra.io/v1//enhanced-api//transfers
Get asset transfers 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)
-
type::[string]_The type of transfer to get. _Available values : internal, external, erc20, erc721, all
Default value : all
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]
- log[string]
Example
Request
curl --location --request GET 'https://eth-mainnet.unifra.io/v1/de06bac5217b49c3af79fd3aeb06a87b/enhanced-api/0x3cD751E6b0078Be393132286c442345e5DC49699/transfers'
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"
}
]
},