LIST_ACCOUNTS
List accounts for a program
Overview
This method will return account data for a program. Running with only required body params will return all recent instructions and default to 10 objects. Feel free to make use of all non-required body params for more advanced queries. Refer to the Body "Schema" tab for help
List accounts for a given programId
Header parameters
x-api-keystringRequired
the API key
Body
typestringRequiredExample:
Should be set to 'LIST_ACCOUNTS'. This is the type of query you want to perform.
LIST_ACCOUNTSResponses
200
Successful Response
application/json; charset=utf-8
post
/query/solana200
Successful Response
Example - Basic
Program - Candy Machine
Description - Return recent accounts
Javascript
cURL
Example - Advanced
Program - Cypher Protocol
Description - Return recent accounts within the specific time range. Only include the following fields in the response body: slot, lamports, data.
Javascript
cURL
Last updated