Authorizations
API Key
WebAuthn (Passkey)
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Body
Unique identifier for a given organization.
Address corresponding to a wallet account.
The network identifier in CAIP-2 format (e.g., ‘eip155:1’ for Ethereum mainnet).
Response
A successful response returns the following fields:
List of asset balances
The caip-19 asset identifier
The balance in atomic units
The number of decimals this asset uses
display field
USD value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise.
Normalized crypto value for display purposes only. Do not do any arithmetic or calculations with these, as the results could be imprecise.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_wallet_address_balances \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"address": "<string>",
"caip2": "<string>"
}'
{
"balances": [
{
"caip19": "<string>",
"symbol": "<string>",
"balance": "<string>",
"decimals": "<number>",
"display": {
"usd": "<string>",
"crypto": "<string>"
}
}
]
}