Announcing our $20m venture round co-led by cyber•Fund and Blockchain Capital. Read more.
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"
}The OneBalance API uses API keys to authenticate requests. All API requests require authentication using an API key passed in the x-api-key header:
curl -X 'GET' \
'https://be.onebalance.io/api/path-to/endpoint' \
-H 'x-api-key: ${ONEBALANCE_API_KEY}' \
...A public API key is available for testing purposes with limited usage: 42bb629272001ee1163ca0dbbbc07bcbb0ef57a57baf16c4b1d4672db4562c11.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Learn how to generate API access tokens at OneBalance Docs.
The address for which to retrieve the transaction history
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Maximum number of transactions to return
x >= 110
The continuation string for retrieving the next page of transactions
"txn_00123456789abcdef"
Field to sort the transaction history by. Defaults to createdAt if not specified.
createdAt, updatedAt "createdAt"
Successfully retrieved the transaction history
List of transactions for the user
Show child attributes
Quote ID of the execution
"0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
Execution status of the quote
PENDING, IN_PROGRESS, EXECUTED, COMPLETED, REFUNDED, FAILED { "status": "COMPLETED" }The address of the user that initiated the quote
"0x9b747cC14A5672a7166b4eccdc92d7F4003f8081"
Recipient account identifier (e.g., eip155:chainId/address).
"eip155:1/0x9b747cC14A5672a7166b4eccdc92d7F4003f8081"
The asset(s) that were sent from the source
Show child attributes
The hash of the transaction
"0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
The chain ID of the transaction
1
The CAIP-2 identifier for the chain
"eip155:1"
Explorer URL of the transaction
"https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
[
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
]The asset(s) that were received to the final destination
Show child attributes
The hash of the transaction
"0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
The chain ID of the transaction
1
The CAIP-2 identifier for the chain
"eip155:1"
Explorer URL of the transaction
"https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
[
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
]The type of transaction initiated by the user
SWAP, TRANSFER, BRIDGE, CALL "SWAP"
The token(s) that were sent from the source
Show child attributes
The aggregated asset ID (e.g., ob:usd)
"ob:eth"
The amount of the token
"1000000000000000000"
The type of the individual assets (e.g., eip155:1/erc20:... or eip155:1/slip44:...)
[
"eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7",
"eip155:1/slip44:60"
]The fiat values of the individual asset types
Show child attributes
The CAIP-19 asset type identifier (e.g., eip155:1/erc20:... or eip155:1/slip44:...).
"eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7"
The fiat value of the individual asset in USD
"100"
[
{
"assetType": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7",
"fiatValue": "1800.00"
},
{
"assetType": "eip155:1/slip44:60",
"fiatValue": "1800.00"
}
]The token(s) that were received to the final destination
Show child attributes
The aggregated asset ID (e.g., ob:usd)
"ob:usdc"
The amount of the token
"100000000"
The type of the individual asset (e.g., eip155:1/erc20:... or eip155:1/slip44:...)
"eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7"
The fiat value of the individual asset in USD
"100"
The minimum amount of the token
"100"
The minimum fiat value of the token
"100"
The token symbol (e.g., USDC, ETH)
"USDC"
The human-readable name of the token
"USDC"
The number of decimal places for the token
18
The recipient account address with chain identifier where the destination tokens will be received
"eip155:42161:0x895Cf62399bF1F8b88195E741b64278b41EB7F09"
The timestamp of the transaction
"2024-01-01T00:00:00.000Z"
Reason for quote refund when status is REFUNDED.
For detailed explanations and troubleshooting steps, see: https://docs.onebalance.io/api-reference/error-codes
Possible values:
General Failure Reasons:
Execution Revert Specific Reasons:
Jupiter Specific Failures:
UNKNOWN, SLIPPAGE, AMOUNT_TOO_LOW_TO_REFUND, DEPOSIT_ADDRESS_MISMATCH, DEPOSIT_CHAIN_MISMATCH, INCORRECT_DEPOSIT_CURRENCY, DOUBLE_SPEND, SOLVER_CAPACITY_EXCEEDED, DEPOSITED_AMOUNT_TOO_LOW_TO_FILL, NEGATIVE_NEW_AMOUNT_AFTER_FEES, NO_QUOTES, MISSING_REVERT_DATA, REVERSE_SWAP_FAILED, GENERATE_SWAP_FAILED, TOO_LITTLE_RECEIVED, EXECUTION_REVERTED, NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE, TRANSACTION_REVERTED, ORIGIN_CURRENCY_MISMATCH, NO_INTERNAL_SWAP_ROUTES_FOUND, SWAP_USES_TOO_MUCH_GAS, INSUFFICIENT_FUNDS_FOR_RENT, ORDER_EXPIRED, ORDER_IS_CANCELLED, TRANSFER_FROM_FAILED, TRANSFER_FAILED, SIGNATURE_EXPIRED, INVALID_SIGNATURE, INSUFFICIENT_NATIVE_TOKENS_SUPPLIED, TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE, TRANSFER_AMOUNT_EXCEEDS_BALANCE, INVALID_SENDER, ACCOUNT_ABSTRACTION_INVALID_NONCE, ACCOUNT_ABSTRACTION_SIGNATURE_ERROR, SEAPORT_INEXACT_FRACTION, TOKEN_NOT_TRANSFERABLE, ZERO_SELL_AMOUNT, MINT_NOT_ACTIVE, ERC_1155_TOO_MANY_REQUESTED, INCORRECT_PAYMENT, INVALID_GAS_PRICE, FLUID_DEX_ERROR, ORDER_ALREADY_FILLED, SEAPORT_INVALID_FULFILLER, JUPITER_INVALID_TOKEN_ACCOUNT "SLIPPAGE"
String to provide in order to fetch the next page of results
"txn_00123456789abcdef"
Was this page helpful?