Skip to main content

/v1/accounts/{address} REST API Endpoint

Returns account data for the given address by the block height or the latest, sealed block.

Updated on
Oct 4, 2023

/v1/accounts/{address} REST API Endpoint

Parameters

address
string
REQUIRED
The address of the account
block_height
string
(default: sealed) The block height to query for the account details. The string final and sealed are also supported
expand
string
A comma-separated list indicating which properties of the content to expand
select
string
A comma-separated list indicating which properties of the content to return

Returns

address
string
The 8-byte address of the account
balance
string
The amount of Flow tokens held by the account associated with the specified address
keys
array
It represents the set of cryptographic keys associated with a specific account on the network. It contains the following fields:
index
string
The index of the public key
public_key
string
The public keys associated with the account encoded in hexadecimal format
signing_algorithm
string
The cryptographic signing algorithms used to sign transactions and other operations with the account keys. It can be BLSBLS12381, ECDSAP256 or ECDSASecp256k1
hashing_algorithm
string
The cryptographic hash algorithms used to hash the account keys. It can be SHA2_256, SHA2_384, SHA3_256, SHA3_384 or KMAC128
sequence_number
string
The current sequence number of the account. This is used to ensure that transactions are executed in the correct order and to prevent replay attacks
weight
string
The weight of the active key in the list of account keys
revoked
boolean
A flag indicating whether the key is active or not
contracts
object
It refers to a list of smart contracts associated with a specific account on the network.
property
string
The property of the contract
_expandable
object
The items inside the _expandable object can be expanded by passing as the query parameter in the request. For this method, the parameters keys and contracts have been added to the request
_links
object
An object that contains links to related resources or endpoints
_self
string
It is a link that refers to the current resource itself. In this case, it is the account resource requested
Request
1
curl -X 'GET' 'https://docs-demo.flow-mainnet.quiknode.pro/v1/accounts/0x1e3c78c6d580273b?expand=keys,contracts' \
2
-H 'Content-Type: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free