Getting a list of transactions

Getting your transaction history

🔗

The GET /transactions endpoint allow users to retrieve a list of all transaction history. To do this the user must have viewer as their API key role.

Query Parameters

The parameters can be use to filter and sort the data retrieval. Below are the parameters for this endpoint :

ComponentTypeDescription
limitnumberDefault at 200
offsetnumberOffset for pagination
transaction_idstringThe transaction id
source_idstringThe id of the source vault to filter by
source_addressstringThe address of the source wallet to filter by
asset_idstringThe ID of the asset to filter by
network_idstringThe ID of the network to filter by
start_datestringStart date of transaction records
end_datestringEnd date of transaction records
transaction_typeenumType of transaction to filter by
destination_idstringThe id of the destination vault or whitelist to filter by
destination_addressstringThe address of the destination wallet to filter by
statusenumThe transaction status

Enumerated values are the predefined values that the variable can take. For example, "source_type" can only have values such as "vault", "external", "whitelist" and "network".

ParametersPossible Values
transaction_typewithdraw, rebalance, deposit, stake, claim, unstake, change pool
source_typevault, external, whitelist, network
destination_typevault, whitelist, network, stake pool, validator
statuspending, processing, confirming, completed, rejected, cancelled, failed

Response

The response will state the detail of the transaction including :

ComponentTypeDescription
transaction_idstringThe transaction id
timestampstringThe retrieval of data at the time of request

Each transaction will show the following details :

ComponentTypeDescription
transaction_typeenumType of transaction
asset_idstringUnique ID of asset (ie. ETH, BTC, ETH_ARB)
asset_namestringName of asset
network_idstringID of network (i.e. ETH, )
network_namestringId of blockchain network (ie. Ethereum Mainnet)
amountstringAmount of transaction
feestringTransaction fee

Information of the source will include these four components :

ComponentTypeDescription
source_typestringType of source
source_idstringId of source
source_namestringName of source
source_addressstringWallet address of the source

Information of the destination will include these four components :

ComponentTypeDescription
destination_typestringType of destination
destination_idstringId of destination
destination_namestringName of destination
destination_addressstringWallet address of the destination
memostringMemo for address types with memo/tag/note

Details of the transaction will also include the following :

ComponentTypeDescription
txn_hashstringTransaction hash
blockexplorer_linkstringLink to the transaction on the blockexplorer
notestringTransaction note
statusenumTransaction status

Example Response

{
        "transactions": [
            {
                "transaction_id": "2301xse2...",
                "timestamp": "2019-01-02T12:34:56.000Z",
                "transaction": {
                    "transaction_type": "withdraw",
                    "asset_id": "BTC",
                    "asset_name": "Bitcoin",
                    "network_id": "BTC",
                    "network_name": "Bitcoin Network",
                    "amount": "1.02332",
                    "fee": "0.0023",
                    "source": {
                        "source_type": "vault",
                        "source_id": "3",
                        "source_name": "Long Term Vault",
                        "source_address": "2300slsdx2309"
                    },
                    "destination": {
                        "destination_type": "whitelist",
                        "destination_id": "xyz",
                        "destination_name": "Exchange wallet",
                        "destination_address": "23099upsj2",
                        "memo": ""
                    },
                    "txn_hash": "02391sdxw23sx2",
                    "blockexplorer_link": "https:/scan.io/tx/02391sdxw23sx2",
                    "note": "Withdraw to exchange wallet"
                },
                "status": "completed"
            },
            {
                "transaction_id": "2205xse2...",
                "timestamp": "2019-01-02T12:34:56.000Z",
                "transaction": {
                    "transaction_type": "rebalance",
                    "asset_id": "ETH",
                    "asset_name": "Ethereum",
                    "network_id": "ETH",
                    "network_name": "Ethereum Mainnet",
                    "amount": "0.2332",
                    "fee": "0.0023",
                    "source": {
                        "source_type": "vault",
                        "source_id": "3",
                        "source_name": "Long Term Vault",
                        "source_address": "2300slsdx2309"
                    },
                    "destination": {
                        "destination_type": "vault",
                        "destination_id": "222",
                        "destination_name": "Short Term Vault",
                        "destination_address": "0xd231ls2...",
                        "memo": ""
                    },
                    "txn_hash": "02391sdxw23sx2",
                    "blockexplorer_link": "https:/etherscan.io/tx/02391sdxw23sx2",
                    "note": "Withdraw to exchange wallet"
                },
                "status": "completed"
            },
            {
                "transaction_id": "2205xse2...",
                "timestamp": "2019-01-02T12:34:56.000Z",
                "transaction": {
                    "transaction_type": "deposit",
                    "asset_id": "XRP",
                    "asset_name": "XRP",
                    "network_id": "XRP",
                    "network_name": "Ripple",
                    "amount": "200.3214",
                    "fee": "0.0023",
                    "source": {
                        "source_type": "external",
                        "source_id": "",
                        "source_name": "",
                        "source_address": "2300slsdx2309"
                    },
                    "destination": {
                        "destination_type": "vault",
                        "destination_id": "3",
                        "destination_name": "Long Term Vault",
                        "destination_address": "0xd231ls2...",
                        "memo": "123"
                    },
                    "txn_hash": "02391sdxw23sx2",
                    "blockexplorer_link": "https:/etherscan.io/tx/02391sdxw23sx2",
                    "note": ""
                },
                "status": "completed"
            },
            {
                "id": "2205xse2...",
                "timestamp": "2019-01-02T12:34:56.000Z",
                "transaction": {
                    "asset_id": "XRP",
                    "asset_name": "Ripple",
                    "network_id": "XRP",
                    "network_name": "Ripple",
                    "transaction_type": "withdraw",
                    "amount": "200.3214",
                    "fee": "0.0023",
                    "source": {
                        "source_type": "vault",
                        "vault_id": "12",
                        "source_name": "Long Term Vault",
                        "source_address": "2300slsdx2309"
                    },
                    "destination": {
                        "destination_type": "network",
                        "destination_id": "xyz",
                        "destination_name": "Counterparty Workspace - Profile Name",
                        "destination_address": "0xd231ls2...",
                        "memo": "123"
                    },
                    "txn_hash": "02391sdxw23sx2",
                    "blockexplorer_link": "https:/etherscan.io/tx/02391sdxw23sx2",
                    "note": ""
                },
                "status": "completed"
            },
                {
                    "id": "2205xse2...",
                    "timestamp": "2019-01-02T12:34:56.000Z",
                    "transaction": {
                        "transaction_type": "deposit",
                        "asset_id": "ADA",
                        "asset_name": "Cardano",
                        "network_id": "ADA",
                        "network_name": "Cardano Network",
                        "amount": "5000",
                        "fee": "0.02",
                        "source": {
                            "source_type": "vault",
                            "source_id": "42",
                            "source_name": "Long Term Vault",
                            "source_address": "2300slsdx2309"
                        },
                        "destination": {
                            "destination_type": "stakepool",
                            "destination_id": "xyz",
                            "destination_name": "Stake Pool Name",
                            "destination_address": "pool123sxa2",
                            "memo": ""
                        },
                        "txn_hash": "02391sdxw23sx2",
                        "blockexplorer_link": "https:/etherscan.io/tx/02391sdxw23sx2",
                        "note": ""
                    },
                    "status": "completed"
            }
        ]
}

Getting your transaction detail

To view a certain transaction, use the endpoint GET /transactions/{tx_id} to retrieve the details of it. To do this, input the transaction id into "transaction_id" in the parameter.

Path Parameters

ComponentTypeDescription
transaction_idstringTransaction ID to retrieve

The format of response follows the same format as GET /transactions .

Example Response

{
    "transactions": [
        {
            "transaction_id": "2301xse2...",
            "timestamp": "2019-01-02T12:34:56.000Z",
            "transaction": {
                "transaction_type": "withdraw",
                "asset_id": "BTC",
                "asset_name": "Bitcoin",
                "network_id": "BTC",
                "network_name": "Bitcoin Network",
                "amount": "1.02332",
                "fee": "0.0023",
                "source": {
                    "source_type": "vault",
                    "source_id": "3",
                    "source_name": "Long Term Vault",
                    "source_address": "2300slsdx2309"
                },
                "destination": {
                    "destination_type": "whitelist",
                    "destination_id": "xyz",
                    "destination_name": "Exchange wallet",
                    "destination_address": "23099upsj2",
                    "memo": ""
                },
                "txn_hash": "02391sdxw23sx2",
                "blockexplorer_link": "https:/scan.io/tx/02391sdxw23sx2",
                "note": "Withdraw to exchange wallet"
            },
            "status": "completed"
        }
    ]
}