The transactions API fetches the list of all transactions in wallet address
Our Bank statements often let us understand the financial positions of a bank account. Similarly for a Crypto wallet, the transactions gives the wallet holder a detailed analysis of the inbound and out bound transfers thereby keeping the wallet apprised of all the happenings in their wallet.
Unmarshal Transaction APIs are smart enough to differentiate the kind of operation a particular transaction was made for. It will let a user understand if the transaction was was for a send or receive or the amount was staked or un-staked , or if the transactions was for adding or removing liquidity .
This Endpoint allows contract filtering, where it returns all the transactions made by an address for that contract.
This Endpoint does not provide total transaction count for an address which inturn does not provide total pages, but instead it will returns a boolean value which specifies whether transaction are present in next page
Filters:
Get Transactions for an address from a specified block till a specified block
Block Filtering, returns transactions within specified Block Numbers (fromBlock specifies from which block transactions should be picked, toBlock specifies till which block).
Get Transactions of an address for a specified contract address
Contract Filtering, returns all the transactions made by an address for the specified contract.
Get transactions along with price at the time of transaction
Get all transactions along with prices of tokens which are involved
unmarshal.WalletApi
.getTokenTransactionHistoryWithoutTotalCount(Chain.ethereum, "token address")
.then(({data}) => console.log(data))
Note*
Valid query paramaters for solana are before
, pageSize
, until
and contract
, For pagination use before
and until
instead of page
curl -i -X GET \ 'https://api.unmarshal.com/v3/:chain/address/:address/transactions?page=1&pageSize=5&contract=string&fromBlock=14870135&toBlock=14870140&price=false&before=string&until=string&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "items_on_page": 25,
- "has_next": true,
- "transactions": [
- {
- "id": "0xdc52ce2a96e4167ddd09a00d9a359baf4f11593bb043f5c0f91803e95a3079d0",
- "from": "0x2cb69e9931579cf058de13fa99bcddd9ee01c4b1",
- "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
- "fee": "1164210000000000",
- "date": 1654505316,
- "status": "completed",
- "type": "swap",
- "block": 18448006,
- "value": "0",
- "nonce": 653,
- "native_token_decimals": 18,
- "description": "Swapped 500 USDT for 4474.9795 MARSH",
- "received": [
- {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "token_id": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "decimals": 18,
- "value": "4474979524922017950654",
- "from": "0x222f93187f15f354d41ff6a7703ef7e18cdd5103",
- "to": "0x2cb69e9931579cf058de13fa99bcddd9ee01c4b1"
}
], - "sent": [
- {
- "name": "Tether USD",
- "symbol": "USDT",
- "token_id": "0x55d398326f99059ff775485246999027b3197955",
- "decimals": 18,
- "value": "500000000000000000000",
- "from": "0x2cb69e9931579cf058de13fa99bcddd9ee01c4b1",
- "to": "0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae"
}
], - "others": [
- {
- "name": "Wrapped BNB",
- "symbol": "WBNB",
- "token_id": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
- "decimals": 18,
- "value": "1602213151597334325",
- "from": "0x16b9a82891338f9ba80e2d6970fdda79d1eb0dae",
- "to": "0x222f93187f15f354d41ff6a7703ef7e18cdd5103"
}
]
}, - {
- "id": "0x7484ea87c5ab38687ea7d39de2d307781d552025c550bc721de37131674eefaf",
- "from": "0x2767653f97589b63497a0fe5e180132d034bd315",
- "to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
- "fee": "1907451000000000",
- "date": 1654482264,
- "status": "completed",
- "type": "swap",
- "block": 18440351,
- "value": "0",
- "nonce": 3397,
- "native_token_decimals": 18,
- "description": "Swapped 6186.6278 MARSH for ",
- "sent": [
- {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "token_id": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "decimals": 18,
- "value": "6186627755954759350693",
- "from": "0x2767653f97589b63497a0fe5e180132d034bd315",
- "to": "0x222f93187f15f354d41ff6a7703ef7e18cdd5103"
}
], - "others": [
- {
- "name": "Wrapped BNB",
- "symbol": "WBNB",
- "token_id": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
- "decimals": 18,
- "value": "2285759346471271721",
- "from": "0x222f93187f15f354d41ff6a7703ef7e18cdd5103",
- "to": "0xd99c7f6c65857ac913a8f880a4cb84032ab2fc5b"
}, - {
- "name": "USD Coin",
- "symbol": "USDC",
- "token_id": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
- "decimals": 18,
- "value": "697895151690092642859",
- "from": "0xd99c7f6c65857ac913a8f880a4cb84032ab2fc5b",
- "to": "0x2767653f97589b63497a0fe5e180132d034bd315"
}
]
}, - {
- "id": "0x34ea94de4202227dc737ab61948c2ee3cc7ac6062cd0d0fb5e2e99116ec46265",
- "from": "0x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675",
- "to": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "fee": "207150000000000",
- "date": 1654482261,
- "status": "completed",
- "type": "receive",
- "block": 18440350,
- "value": "0",
- "nonce": 13478,
- "native_token_decimals": 18,
- "description": "Received 19650.6143 MARSH and 19650.6143 MARSH ",
- "received": [
- {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "token_id": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "decimals": 18,
- "value": "19650614310408157368117",
- "from": "0x65a8f07bd9a8598e1b5b6c0a88f4779dbc077675",
- "to": "0x73f182613cd91c93b96ccad7db2f4c4d04eeb1f1"
}, - {
- "name": "UnmarshalToken",
- "symbol": "MARSH",
- "token_id": "0x2fa5daf6fe0708fbd63b1a7d1592577284f52256",
- "decimals": 18,
- "value": "19650614310408157368117",
- "from": "0x73f182613cd91c93b96ccad7db2f4c4d04eeb1f1",
- "to": "0x0000000000000000000000000000000000000000"
}
]
}
]
}
The transactions API fetches the list of all transactions in wallet address
Our Bank statements often let us understand the financial positions of a bank account. Similarly for a Crypto wallet, the transactions gives the wallet holder a detailed analysis of the inbound and out bound transfers thereby keeping the wallet apprised of all the happenings in their wallet.
Unmarshal Transaction APIs are smart enough to differentiate the kind of operation a particular transaction was made for. It will let a user understand if the transaction was was for a send or receive or the amount was staked or un-staked , or if the transactions was for adding or removing liquidity .
This Endpoint allows contract filtering, where it returns all the transactions made by an address for that contract.
This Endpoint does not provide total transaction count for an address which inturn does not provide total pages, but instead it will returns a boolean value which specifies whether transaction are present in next page
Filters:
Get Transactions for an address from a specified block till a specified block
Block Filtering, returns transactions within specified Block Numbers (fromBlock specifies from which block transactions should be picked, toBlock specifies till which block).
Get Transactions of an address for a specified contract address
Contract Filtering, returns all the transactions made by an address for the specified contract.
Get transactions along with price at the time of transaction
Get all transactions along with prices of tokens which are involved
unmarshal.WalletApi
.getTokenTransactionHistoryWithoutTotalCount(Chain.ethereum, "token address")
.then(({data}) => console.log(data))
curl -i -X GET \ 'https://api.unmarshal.com/v2/:chain/address/:address/transactions?page=1&pageSize=5&contract=string&fromBlock=14870135&toBlock=14870140&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "total_pages": 410,
- "items_on_page": 2,
- "total_txs": 818,
- "transactions": [
- {
- "id": "0xd161da09ffb7923bed067b69dad4de0b248c68ca894ad51eba164f7f4f59bdd7",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
- "fee": "11784738220738476",
- "date": 1637297762,
- "status": "completed",
- "type": "send",
- "block": 13643689,
- "value": "0",
- "nonce": 718,
- "description": "Sent 24000 USDT",
- "sent": [
- {
- "name": "Tether USD",
- "symbol": "USDT",
- "token_id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
- "decimals": 6,
- "value": "24000000000",
- "quote": 24004.505957808455,
- "quoteRate": 1.000187748242019,
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0xf7237b736602c3d19d53ca1b11ccdaa6303f3f36"
}
]
}, - {
- "id": "0x2c5bc2944a889b766a5aa256ecaa8e9c51bdee8d983877ed8bb1fc9261ea9b00",
- "from": "0x892d3a12497b6a61419a36fcee2ed1b4c8cdc8e4",
- "to": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "fee": "27909818271630548",
- "date": 1637150238,
- "status": "completed",
- "type": "receive",
- "block": 13632789,
- "value": "0",
- "nonce": 308,
- "description": "Received 300000 KyDy.org and 74 more",
- "received": [
- {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xcc2a71dbc6bac68f1b86812812fbd0317a4e93bd"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x54ef272aaaca17a4cf95af65c28d670efbf05005"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xd060898213b66f8abf1367f84dde0abcfedd0d58"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x875b24daec80ec04a5650403dcb91b2bda32bd52"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x029ed5bc7a839d4a6d8642f91bd8734761ca0c1c"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x52172c908be37d8ca51cdc57c8fc2526500efe8f"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xdcbd0504be8117419a0b6a9f8738383aa2ac7cc2"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xbb74239e6b33857523ec9b37a33c8fdf1d25d127"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xb46d0e74676886d00522692bd1d9eb5a56207659"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x005fa2741421824cdc8aceb39687d80746ad647f"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x6ee0044ac64685d788d66562c51020cf8ac24363"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x60868caa4ff5f4ffda807663aa8fcce3531e298e"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xfaea89ee0cc96fe5d36d8ba97aea64fbd70770c1"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xe514d7b9f5fc4cd3ce9ed726d07013fe043b22de"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x7005057546fbd005106ca1e661a92f6c189dabc8"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x0af6e055325a1efc6c115ed0f38e3195e4beb5b8"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x7ea69bbed6d97942926da3e810aac564594f9f7d"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xb3bf99751ada6dbdaf0a89ba2f47f51acaa4602e"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x435a4ccc3712b0b40ce16a1c7bfa263ed6e9bb33"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x9d46f4e2e4f011bcc4f823c7df6cc0d0c613b4ce"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x621f2a5ef987e064e76da1eb378e7193cefc0baa"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x9c13bae9c0c6df970ea2740739fb163271f73397"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xe91f376de650ea50b3a4158cc136a06ec8b496ca"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x73f3d54215950471de9193282afede461c9d7b16"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x25ed0d1ca3bda30e05e281375e940c0f368e4c42"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x7fdc0894784116a66e9201409e103104c6dd3bcf"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xbaa7dac724d6ab7474af7625811f8ca2e972d541"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xb1f42be2a97e114afbdd5cbe2befbcf16fd731e5"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xa0061ff64fa814ed670a9cb3a395f2980d0aa7b1"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x22bb895c0ad5bdaa1cb4f6e081a2649ef4a813ad"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x88aa5a589aacf5387b00b0b372c2ebd5cd25c6ca"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x06360e5a4b8cc4d3c1d8fb8c3dfd1a74364927b9"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x93a3dbb05f90e3949c4bb5fa1e02f8a0012a7bbc"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x260393e86246520d5fb4cc80f3533cc1a04d28be"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x803a2a2f9196583852bb549488576a21448f8a90"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x117409cc1517b38de4cb6afbf40e12a80f5d8961"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x219e69ffe762778604ebe234841d3c4b6262532a"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xd1a5c93ecc20af242de5fb2e1f6c152af5a3e6ce"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x1e14b928a4b895c9a5498e6b239e58f8e1ecedd5"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x9a45d6c9f61881119f37890db00106ad2f4cea9b"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x10395903bfbf4ef877e43f8e6a56591d9cd1a201"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x7ff920c31455bec838864b3b80f90a2d500db02c"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xe7d17460770d49d6f295b5ea1e46f73aa375ee93"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xe345e7ab438ceddc64a66def75289a212f6a7a1e"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x33c5e5dcd787b20675f2ecea01fdff6ebff5ce4b"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xc7dddc45d2ca74cfe310441b47a8583380caace9"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xfa0c47484536935a85456188bcce1528e59af7a3"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0xba47e030fa3ce45f037497fcc4e2b3a9b307d7a6"
}, - {
- "name": "KyDy.org",
- "symbol": "KyDy.org",
- "token_id": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "decimals": 18,
- "value": "300000000000000000000000",
- "quote": 366230.19137046684,
- "quoteRate": 1.2207673045682228,
- "from": "0xc85e0474068dba5b49450c26879541ee6cc94554",
- "to": "0x52d4d46e28dc72b1cef2cb8eb5ec75dd12bc4df3"
}
]
}
]
}
The transactions API fetches the list of all transactions in wallet address
Our Bank statements often let us understand the financial positions of a bank account. Similarly for a Crypto wallet , the transactions gives the wallet holder a detailed analysis of the inbound and out bound transfers thereby keeping the wallet apprised of all the happenings in their wallet.
Unmarshal Transaction APIs are smart enough to differentiate the kind of operation a particular transaction was made for. It will let a user understand if the transaction was was for a send or receive or the amount was staked or un-staked , or if the transactions wa Note: This API will be slower compared to the v3 API which doesn't fetch transaction count.
Filters:
Get Transactions for an address from a specified block till a specified block
Block Filtering, returns transactions within specified Block Numbers (fromBlock specifies from which block transactions should be picked, toBlock specifies till which block).
Get Transactions of an address for a specified contract address
Contract Filtering, returns all the transactions made by an address for the specified contract. (contract query parameter accepts any valid contract address)
Get Transactions for requested chain
Chain Id Filtering for kadena chain, Returns transactions available on a particular chain (0-19), All other filters will also applies for kadena chain.
unmarshal.WalletApi
.getTransactionHistory(Chain.ethereum, "demo.eth")
.then(({data}) => console.log(data))
curl -i -X GET \ 'https://api.unmarshal.com/v1/:chain/address/:address/transactions?page=1&pageSize=5&contract=string&fromBlock=14870135&toBlock=14870140&chainId=false&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "total_pages": 178,
- "items_on_page": 1,
- "total_txs": 355,
- "transactions": [
- {
- "id": "0x3bd3d0bc3fcc70429c4acfee9068719e7c07a30c13807aa3591e79e78c64ca6b",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1",
- "fee": "603385000000000",
- "date": 1637606035,
- "status": "completed",
- "type": "stake",
- "block": 12868958,
- "value": "0",
- "nonce": 261,
- "description": "Staked 0.5224 HY-HOTCROSS-BNB-PCS-V2",
- "sent": [
- {
- "name": "Hot Yield HOTCROSS-BNB PCS V2",
- "symbol": "HY-HOTCROSS-BNB-PCS-V2",
- "token_id": "0x9bff65a94c56f7173406f9b417b2bb81bf233965",
- "decimals": 18,
- "value": "522412834863199063",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1"
}
]
}
]
}
This Endpoint provides all the transactions of a token address irrespective of wallet address.
This Endpoint does not provide total transaction count for an address which inturn does not provide total pages, but instead it will returns a boolean value which specifies whether transaction are present in next page.
All of the transactions that the contract was involved in are returned by the api. The response also includes transactional information (Including non-contract specific interactions).
Unmarshal Transaction APIs are smart enough to differentiate the kind of operation a particular transaction was made for. It will let a user understand if the transaction was was for a send or receive or the amount was staked or un-staked , or if the transactions was for adding or removing liquidity .
Filters:
Get Transactions for an address from a specified block till a specified block
Block Filtering, returns transactions within specified Block Numbers (fromBlock specifies from which block transactions should be picked, toBlock specifies till which block).unmarshal.WalletApi
.getTokenTransactionHistoryWithoutTotalCount(Chain.ethereum, "token address")
.then(({data}) => console.log(data))
Note*
Valid query paramaters for solana are before
, pageSize
and until
, For pagination use before
and until
instead of page
curl -i -X GET \ 'https://api.unmarshal.com/v2/:chain/token/:address/transactions?page=1&pageSize=5&fromBlock=14870135&toBlock=14870140&before=string&until=string&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "total_pages": 178,
- "items_on_page": 1,
- "total_txs": 355,
- "transactions": [
- {
- "id": "0x3bd3d0bc3fcc70429c4acfee9068719e7c07a30c13807aa3591e79e78c64ca6b",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1",
- "fee": "603385000000000",
- "date": 1637606035,
- "status": "completed",
- "type": "stake",
- "block": 12868958,
- "value": "0",
- "nonce": 261,
- "description": "Staked 0.5224 HY-HOTCROSS-BNB-PCS-V2",
- "sent": [
- {
- "name": "Hot Yield HOTCROSS-BNB PCS V2",
- "symbol": "HY-HOTCROSS-BNB-PCS-V2",
- "token_id": "0x9bff65a94c56f7173406f9b417b2bb81bf233965",
- "decimals": 18,
- "value": "522412834863199063",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1"
}
]
}
]
}
This Endpoint provides all the transactions of a token address irrespective of wallet address
All of the transactions that the contract was involved in are returned by the api. The response also includes transactional information (Including non-contract specific interactions). The count also contains the total transaction count of the contract involved in.
Unmarshal Transaction APIs are smart enough to differentiate the kind of operation a particular transaction was made for. It will let a user understand if the transaction was was for a send or receive or the amount was staked or un-staked , or if the transactions was for adding or removing liquidity. Note: This API will be slower compared to the v3 API which doesn't fetch transaction count.
Filters:
Get Transactions for an address from a specified block till a specified block
Block Filtering, returns transactions within specified Block Numbers (fromBlock specifies from which block transactions should be picked, toBlock specifies till which block).
Get Transactions for requested chain
Chain Id Filtering for kadena chain, Returns transactions available on a particular chain (0-19), All other filters will also applies for kadena chain.
unmarshal.WalletApi
.getTokenTransactionHistory(Chain.ethereum, "token address")
.then(({data}) => console.log(data))
curl -i -X GET \ 'https://api.unmarshal.com/v1/:chain/token/:address/transactions?page=1&pageSize=5&chainId=false&auth_key=YOUR_API_KEY_HERE'
{- "page": 1,
- "total_pages": 178,
- "items_on_page": 1,
- "total_txs": 355,
- "transactions": [
- {
- "id": "0x3bd3d0bc3fcc70429c4acfee9068719e7c07a30c13807aa3591e79e78c64ca6b",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1",
- "fee": "603385000000000",
- "date": 1637606035,
- "status": "completed",
- "type": "stake",
- "block": 12868958,
- "value": "0",
- "nonce": 261,
- "description": "Staked 0.5224 HY-HOTCROSS-BNB-PCS-V2",
- "sent": [
- {
- "name": "Hot Yield HOTCROSS-BNB PCS V2",
- "symbol": "HY-HOTCROSS-BNB-PCS-V2",
- "token_id": "0x9bff65a94c56f7173406f9b417b2bb81bf233965",
- "decimals": 18,
- "value": "522412834863199063",
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0x30f0222a1ec8eef795fe672cf4a526a6a39d57c1"
}
]
}
]
}
The transaction detail API is one such End Point which gives as much details possible for a specific transaction on a specific given chain.
All we need is the transaction hash and the entire history of the transaction is presented to anyone looking for all minor details pertaining to the particular transaction
unmarshal.WalletApi
.getTransactionDetails(Chain.ethereum, "transaction-hash")
.then(({data}) => console.log(data))
curl -i -X GET \ 'https://api.unmarshal.com/v1/:chain/transactions/:transactionHash?chainId=false&auth_key=YOUR_API_KEY_HERE'
{- "id": "string",
- "from": "string",
- "to": "string",
- "fee": "string",
- "date": 0,
- "status": "string",
- "type": "string",
- "block": 0,
- "value": "string",
- "nonce": 0,
- "description": "string",
- "sent": [
- {
- "name": "PancakeSwap Token",
- "symbol": "Cake",
- "token_id": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
- "decimals": 18,
- "value": "500000000000000000",
- "quoteRate": 17.97815888361184,
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0xfdff29dd0b4dd49bf5e991a30b8593eaa34b4580"
}
], - "received": [
- {
- "name": "PancakeSwap Token",
- "symbol": "Cake",
- "token_id": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
- "decimals": 18,
- "value": "500000000000000000",
- "quoteRate": 17.97815888361184,
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0xfdff29dd0b4dd49bf5e991a30b8593eaa34b4580"
}
], - "others": [
- {
- "name": "PancakeSwap Token",
- "symbol": "Cake",
- "token_id": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
- "decimals": 18,
- "value": "500000000000000000",
- "quoteRate": 17.97815888361184,
- "from": "0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de",
- "to": "0xfdff29dd0b4dd49bf5e991a30b8593eaa34b4580"
}
]
}
This endpoint allows you to retrieve the transaction count for a given address
unmarshal.WalletApi
.getTotalTransactionCount(Chain.ethereum, "demo.eth")
.then(({data}) => console.log(data))
curl -i -X GET \ 'https://api.unmarshal.com/v1/:chain/address/:address/transactions/count?auth_key=YOUR_API_KEY_HERE'
{- "token_holders_count": "3367"
}