Getting a list of vaults

Getting a list of all vaults

🔗

This endpoint allows users to retrieve details of all the vaults in your account. To do this, the user must have viewer as their API role.

Query Parameters

The user can also filter the query by using the following parameters

NameTypeDescription
limitnumberDefault at 200
offsetnumberOffset for pagination
vault_typestringType of vault to filter by
asset_idstringAsset id to retrieve in vault
network_idstringNetwork Id to retrieve in vault

The "vault_type" is an enumerated value, which can have two values and used to filter for vaults of a certain type:

NameValuesDescription
vault_typewarmShow all warm vaults details
vault_typecoldShow all cold vaults details

Response

Querying the endpoint will return a "vaults" array which will contain objects detailing each vault with the following components:

Nametypedescription
vaultsarrayArray of vaults object
vault_idstringThe id used to identify the vault
vault_namestringThe user defined name of the vault from the RakkaR application
vault_typeenumThe type of vault, either: warm or cold
assetsarrayAn array of asset objects representing the assets custodie that vault

The "assets" detail will include the following:

Nametypedescription
asset_idstringThe symbol abbreviation of the asset
asset_namestringThe name of the asset
network_idstringThe symbol abbreviation of the network
network_namestringThe name of the network
balancesobjectAn object containing balance values

The "balances" object details the asset's balance into five balance types:

NameTypeDescription
total_balancestringTotal balance of the asset in the vault
available_balancestringBalance available for transfer
processing_balancestringBalance being processed for transfer. Includes the balance in approval by your quorum and balance being processed, signed, and broadcasted by RakkaR
staking_balancestringBalance being staked
claimable_balancestringBalance of staking rewards available to be claimed

The "asset" object will also contain the "addresses" of the asset in that vault, including the following:

NameTypeDescription
addressesarrayAn object containing address of the asset wallet
addressstringThe address of the segwit address of the asset
address_legacystringThe legacy address of the asset
memostringMemo for addresses of asset types with memo/tag/note
isPermanentstringIdentifier value for the original address of an asset wallet

Example Response

{
    "timestamp": "2019-01-02T12:34:56.000Z",
    "vaults": [
        {
            "vault_id": "1",
            "vault_name": "Vault 1",
            "vault_type": "cold",
            "assets": [
                {
                    "asset_id": "ADA",
                    "asset_name": "Cardano",
                    "network_id": "ADA",
                    "network_name": "Cardano",
                    "balances":
                                {
                                    "total_balance": "530000",
                                    "available_balance": "500000",
                                    "processing_balance": "0",
                                    "staking_balance": "25000",
                                    "claimable_balance": "5000"
                                },
                    "addresses": [
                        {
                            "address": "addr1...",
                            "address_legacy": "addr1...",
                            "memo": "",
                            "isPermanent": true
                        },
                        {
                            "address": "addr1...",
                            "address_legacy": "addr1...",
                            "memo": "",
                            "is_permanent": false
                        }
                    ]
                          },
            {
                "asset_id": "BTC",
                "asset_name": "Bitcoin", 
                "network_id": "BTC",
                "network_name": "Bitcoin Network",
                "balances":
                                {
                                    "total_balance": "60",
                                    "available_balance": "57",
                                    "processing_balance": "3",
                                    "staking_balance": "0",
                                    "claimable_balance": "0"
                                },
                "addresses": [
                    { 
                        "address": "bc1q...",
                        "address_legacy": "1C1c...",
                        "memo": "",
                        "isPermanent":true
                    },
                    { 
                        "address": "bc3q...",
                        "address_legacy": "12xc...",
                        "memo": "",
                        "isPermanent": false
                    },
                    { 
                        "address": "bc5w...",
                        "address_legacy": "132x...",
                        "memo": "",
                        "isPermanent": false
                    }
                ]
            },
            {
                "asset_id": "XRP",
                "asset_name": "Ripple",
                "network_id": "XRP",
                "network_name": "Ripple",
                "balances":
                                {
                                    "total_balance": "1000",
                                    "available_balance": "1000",
                                    "processing_balance": "0",
                                    "staking_balance": "0",
                                    "claimable_balance": "0"
                                },
                "addresses": [
                    {
                        "address": "r123a...",
                        "address_legacy": "",
                        "memo": "180294",
                        "is_permanent": true
                    },    
                    {        
                        "address": "r123a...",
                        "address_legacy": "",
                        "memo" : "6789",
                        "is_permanent": false
                    }
                ]    
            },
            {
                "asset_id": "ETH",
                "asset_name": "Ethereum",
                "network_id": "ETH",
                "network_name": "Ethereum Mainnet",
                "balances":
                            {
                                "total_balance": "2.0",
                                "available_balance": "1.8",
                                "processing_balance": "0.2",
                                "staking_balance": "0",
                                "claimable_balance": "0"
                            },
                "addresses": [
                    {
                        "address": "0xabc...",
                        "address_legacy": "",
                        "memo": "",
                        "is_permanent": true
                    }
                ]
            }
            ]
        },
        {
            "vault_id": "2",
            "vault_name": "Vault 2",
            "vault_type": "warm",
            "assets": [
                {
                    "asset_id": "ETH",
                    "asset_name": "Ethereum",
                    "network_id": "ETH",
                    "network_name": "Ethereum Mainnet",
                    "balances":
                                {
                                  "total_balance": "2.0",
                                  "available_balance": "1.8",
                                  "processing_balance": "0.2",
                                  "staking_balance": "0",
                                  "claimable_balance": "0"
                                },
                    "addresses": [
                      {
                        "address": "0xabc...",
                        "address_legacy": "",
                        "memo": "",
                        "is_permanent": true
                      }
                    ]
                }
            ]
        }
    ]
}

Getting details of a specific vault

🔗

To retrieve details of a specific vault, use this endpoint extension by using the vault_id as a path parameter.

Path Parameter

Users must input the id of a vault under vault_id into the parameter.

ComponentTypeDescription
vault_idstringVault ID to retrieve

The response will be in the same format but will only show information of the requested vault.

Example Response

{
    "timestamp": "2019-01-02T12:34:56.000Z",
    "vaults": [
        {
            "vault_id": "2",
            "vault_name": "Vault 2",
            "vault_type": "warm",
            "assets": [
                {
                    "asset_id": "ETH",
                    "asset_name": "Ethereum",
                    "network_id": "ETH",
                    "network_name": "Ethereum Mainnet",
                    "balances":
                                {
                                  "total_balance": "2.0",
                                  "available_balance": "1.8",
                                  "processing_balance": "0.2",
                                  "staking_balance": "0",
                                  "claimable_balance": "0"
                                },
                    "addresses": [
                      {
                        "address": "0xabc...",
                        "address_legacy": "",
                        "memo": "",
                        "is_permanent": true
                      }
                    ]
                }
            ]
        }