Authorizations
Query Parameters
Example:
Required range:
x >= 1Example:
Example:
Available options:
createdAt, updatedAt Example:
curl --request GET \
--url https://be.onebalance.io/api/status/get-tx-history \
--header 'x-api-key: <api-key>'{
"transactions": [
{
"quoteId": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"status": "COMPLETED",
"user": "0x9b747cC14A5672a7166b4eccdc92d7F4003f8081",
"recipientAccountId": "eip155:1/0x9b747cC14A5672a7166b4eccdc92d7F4003f8081",
"originChainOperations": [
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:1",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
],
"destinationChainOperations": [
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:1",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
],
"type": "SWAP",
"originToken": {
"aggregatedAssetId": "ob:eth",
"amount": "1000000000000000000",
"assetType": [
"eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"eip155:1/slip44:60"
],
"fiatValue": [
{
"assetType": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"fiatValue": "1800"
}
]
},
"destinationToken": {
"aggregatedAssetId": "ob:usdc",
"amount": "1800000000",
"assetType": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"fiatValue": "1800"
},
"timestamp": "2024-01-01T12:00:00.000Z"
}
],
"continuation": "txn_00123456789abcdef"
}Retrieves the transaction history for an address, including the transaction type and token details.
curl --request GET \
--url https://be.onebalance.io/api/status/get-tx-history \
--header 'x-api-key: <api-key>'{
"transactions": [
{
"quoteId": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"status": "COMPLETED",
"user": "0x9b747cC14A5672a7166b4eccdc92d7F4003f8081",
"recipientAccountId": "eip155:1/0x9b747cC14A5672a7166b4eccdc92d7F4003f8081",
"originChainOperations": [
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:1",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
],
"destinationChainOperations": [
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:1",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
],
"type": "SWAP",
"originToken": {
"aggregatedAssetId": "ob:eth",
"amount": "1000000000000000000",
"assetType": [
"eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"eip155:1/slip44:60"
],
"fiatValue": [
{
"assetType": "eip155:1/erc20:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"fiatValue": "1800"
}
]
},
"destinationToken": {
"aggregatedAssetId": "ob:usdc",
"amount": "1800000000",
"assetType": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"fiatValue": "1800"
},
"timestamp": "2024-01-01T12:00:00.000Z"
}
],
"continuation": "txn_00123456789abcdef"
}x >= 1createdAt, updatedAt Was this page helpful?