Skip to content

Account Application Information

GET /v2/accounts/{address}/applications/{applicationId}?format={format}

Get account information about a given app.

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.

Properties

NameTypeDescription
address*stringAn account public key
applicationId*numberAn application identifier
format"json" | "msgpack"Configures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

* indicates required property

Packages

Node.js

Install

Terminal window
npm install algosdk --save

Usage

import { Algodv2 } from "algosdk";
const data = {address: "BMG2OPCDNEVFG5LW4S6GT33PPEWXVJD7XEDLTED4BFWN5M4HXLZNCK3EWY", applicationId: 62368684}
const client = new Algodv2( "", "https://testnet-api.algonode.cloud", 443 );
const result = await client.accountApplicationInformation(data.address, data.applicationId).do();

React

Install

Terminal window
npm install @awesome-algorand/react-query @txnlab/use-wallet-react @tanstack/react-query algosdk --save

Usage

import { useAccountApplicationInformation } from '@awesome-algorand/react-query';
export function AccountApplicationInformationViewer() {
const data = {address: "BMG2OPCDNEVFG5LW4S6GT33PPEWXVJD7XEDLTED4BFWN5M4HXLZNCK3EWY", applicationId: 62368684}
const query = useAccountApplicationInformation(data);
}

Svelte [WIP]

Coming Soon!

Solid [WIP]

Coming Soon!

Vue [WIP]

Coming Soon!

Angular [WIP]

Coming Soon!