Application Information
GET /v2/applications/{applicationId}
Get application information.
Given a application ID, it returns application information including creator, approval and clear programs, global and local schemas, and global state.
Properties
Name | Type | Description |
---|---|---|
applicationId* | string | An application identifier |
* indicates required property
Packages
Node.js
Install
npm install algosdk --save
Usage
import { Algodv2 } from "algosdk";
const data = {applicationId: 62368684}const client = new Algodv2( "", "https://testnet-api.algonode.cloud", 443 );const result = await client.getApplicationByID(data.applicationId).do();
Algosdk Documentation Learn more at the official documentation for algosdk
Coming Soon!
Algokit Documentation Learn more at the official documentation for algokit
import { AlgodClient } from '@awesome-algorand/algod-fetch';
const data = {applicationId: 62368684}const client = new AlgodClient();const result = await client.public.getApplicationById(data);
Algo-fetch Documentation Learn more at the experimental documentation for algo-fetch
React
Install
npm install @awesome-algorand/react-query @txnlab/use-wallet-react @tanstack/react-query algosdk --save
Usage
import { useApplicationInformation } from '@awesome-algorand/react-query';
export function ApplicationInformationViewer() { const data = {applicationId: 62368684} const query = useApplicationInformation(data);}
Tutorial Learn how to use the useApplicationInformation hook in a React application.
Install
npm install @awesome-algorand/query-core @txnlab/use-wallet-react @tanstack/react-query algosdk --save
Usage
import { useQuery } from 'react-query';import { getApplicationById } from '@awesome-algorand/query-core';import { useWallet } from "@txnlab/use-wallet-react";
export function ApplicationInformationViewer() { const walletManager = useWallet(); const data = {applicationId: 62368684} const query = useQuery(getApplicationById(data));}
Svelte [WIP]
Coming Soon!
Solid [WIP]
Coming Soon!
Vue [WIP]
Coming Soon!
Angular [WIP]
Coming Soon!