Accounts

Get account info

Get the account data for the provided principal

Where balance is the hex encoding of a unsigned 128-bit integer (big-endian), nonce is a unsigned 64-bit integer, and the proofs are provided as hex strings.

For non-existent accounts, this does not 404, rather it returns an object with balance and nonce of 0.

get/v2/accounts/{principal}

Path parameters

principalstring required

Stacks address or a Contract identifier (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info)

Query parameters

proofinteger

Returns object without the proof field if set to 0

tipstring

The Stacks chain tip to query from. If tip == latest, the query will be run from the latest known tip (includes unconfirmed state).

Response

Success

GetAccountDataSchemaJson required— unresolved $ref

Changes

Changed in 5 of the 21 revisions of this API.122