Lookup
Get Balance from a private key string
Last updated
Get Balance from a private key string
Last updated
The lookup endpoint retrieves the balance associated with a single private key string. It will display the balance for both BSV and/or STAS tokens that are housed in the corresponding address. Users can customize responses using additional header parameters, such as currency type, pagination, protocol type (including variations of BSV and/or STAS), and compact mode.
Body Params
POST
https://api.relysia.com/v1/lookup
Returns Balance of all assets of Private Key
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
type
String
Type refers to the protocol returned such as BSV, STAS-20, STAS-789. Default ALL will be used and return all.
currency
String
Currency type such as USD, CAD, AUD, or any other supported currency type. Default set to USD.
nextPageToken
Number
Will provide the next page of balance determine by starting point number provided. By default, will start at 0.
compact
Boolean
Compact will be set default to true. This refers to STAS tokens specifically will return total balances of each token Id. Compact false will return each UTXO that comprises of all the total balances.
maxResults
Number
Number of result in the array provided. Default set to 19, where the BSV balance make the total of 20 returned.
privateKey*
String
Private key string value