getCompressedAccount
POST
/{apiKey}
Returns the compressed account matching the given address or hash. Photon's JSON-RPC for this method accepts the params as a positional pair [address, hash] — pass null for whichever identifier you are not using.
addressqueries compressed accounts created with a Light Protocol address.hashqueries by the merkle-tree leaf hash and works for every compressed account.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
string or nulloptional
Pubkey of the compressed account to query. Pass null to query by hash instead.
string or nulloptional
Hash of the compressed account to query. Pass null to query by address instead.
Responses
200
The compressed account data with context information. value is null when no compressed account matches the supplied address or hash.
Was this page helpful?