AccountApplicationInformation - Algorand

Given a specific account public key and application ID, this call returns the account's application local state and global state (AppLocalState and AppParams, if either exists). Global state will only be returned if the provided address is the application's creator.

Endpoint

httpGET /v2/accounts/{address}/applications/{application-id}

Path Parameters

ParameterTypeRequiredDescription
addressstringYesAn account public key.
application-idintegerYesAn application identifier.

Query Parameters

ParameterTypeRequiredDescription
formatstringOptionalConfigures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

Example

bashexport ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${ALGO_ALGOD}v2/accounts/REPLACE_ADDRESS/applications/REPLACE_APPLICATION-ID"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
app-local-stateobjectStores local state associated with an application.
created-appobjectStores the global information associated with an application.
roundintegerThe round for which this information is relevant.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect