GET
/v3-node-0/smartaccount/{address}/lockedBalanceGet a locked token balance
Returns the locked balance for a specific token in a smart account
Base URL
https://api.storm.tgParameters
Path
addressstringrequiredSmart account address
Example:
stringQuery
token_addressstringrequiredToken collateral asset ID
Example:
stringExamples
curl --request GET 'https://api.storm.tg/v3-node-0/smartaccount/{address}/lockedBalance' \
--header 'Accept: application/json'const response = await fetch("https://api.storm.tg/v3-node-0/smartaccount/{address}/lockedBalance", {
method: "GET",
headers: {
"Accept": "application/json"
},
});
console.log(response.status, await response.text());import requests
response = requests.request(
"GET",
"https://api.storm.tg/v3-node-0/smartaccount/{address}/lockedBalance",
headers={"Accept":"application/json"},
timeout=30,
)
print(response.status_code, response.text)Responses
200OKapplication/json
amountintegeroptionalExample:
0leasedintegeroptionalLeased and Locked break down what was netted out of the on-chain amount to get Amount (free = on-chain − leased − locked). Populated only when the caller passes ?include_breakdown=true; nil (omitted) otherwise.
Example:
0lockedintegeroptionalExample:
0minter_addressstringoptionalExample:
string{
"amount": 0,
"leased": 0,
"locked": 0,
"minter_address": "string"
}400Bad Requestapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}500Internal Server Errorapplication/json
codestringoptionalExample:
stringerrorstringoptionalExample:
stringexternalQueryIdstringoptionalExample:
stringmsgstringoptionalExample:
string{
"code": "string",
"error": "string",
"externalQueryId": "string",
"msg": "string"
}