What each vault holds, per asset and network
const url = 'https://api.sotirea.com/v1/balances';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sotirea.com/v1/balances \ --header 'Authorization: Bearer <token>'Amounts are strings of whole smallest units: 1.5 of an asset with 18 decimals is “1500000000000000000”. Spendable is what a new payment may use; money still arriving is in incoming and is not spendable until the network has made it final.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only this vault’s.
Only this network, by its CAIP-2 id, like eip155:1. Each vault lists the ids of its networks.
Which page, from 1.
How many per page, at most 100. 25 when not given.
Responses
Section titled “Responses”Done.
object
object
Native for the network’s own coin, or a token’s contract address.
Final, in the asset’s smallest unit.
Held for a compliance review: counted in available, not spendable until Sotirea releases it. Sotirea will contact you.
Seen arriving on the network and not yet final.
Seen leaving on the network and not yet final.
The network or asset is not available right now. What is held is still yours and deposits are still credited; it cannot be sent until it is available again.
True for the network’s coin and for tokens on Sotirea’s recognised list. Any other token’s symbol is whatever its contract calls itself, so do not trust it by name.
Promised to payments already accepted.
What a new payment may use. Show this as what can be sent.
object
object
Quote it when asking about a request; it is in the X-Request-Id header too.
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
object
object
object
object
Quote it when asking about a request.
Example
{ "success": false}