Accounts
Stacks address (28-41 characters) or a Contract identifier in format {address}.{contract_name}
(e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info).
Contract names have a maximum length of 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-infoPattern: ^([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41})|([0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}\.[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127})$Controls MARF proof inclusion in response. Set to 1 (default) to include proof, 0 to exclude. Invalid values default to 0 (no proof).
1Example: 1Possible values: Stacks chain tip to query from. Options:
- (empty/omitted): Use latest anchored tip (canonical confirmed state)
latest: Use latest known tip including unconfirmed microblocks{block_id}: Use specific block ID (64 hex characters)
latestPattern: ^(latest|[0-9a-f]{64})?$Success
GET request for account data
Block height when locked balance unlocks (64-bit unsigned integer)
Account transaction nonce (64-bit unsigned integer)
Merkle proof for the balance value
Merkle proof for the nonce value
Bad request
Not found
Internal Server Error
GET /v2/accounts/{principal} HTTP/1.1
Host: localhost:20443
Accept: */*
{
"balance": "0x0000000000000000000000000007a120",
"locked": "0x0000000000000000000000000007a120",
"unlock_height": 126,
"nonce": 2867,
"balance_proof": "0xabce",
"nonce_proof": "0xabcd"
}Last updated
Was this helpful?