Skip to main content

AlgoReadAppGlobal

Clicking the AlgoReadAppGlobal button will fetch the global state of an app.

caution

This button executes transactions on the MainNet by default. To switch to TestNet, check out SwitchNet Component

Upon confirmation, it returns an array containing information about the global app state.

Accessing returned data

The returned array can be accessed several different ways. Setting the context prop to {this} and the returnTo prop to a state key (as string) will return the array directly to your parent component's state without the need for additional callback or event handler code, but can also be accessed with an onChange handler:

handleChange = (value) =>{
this.setState({globalAppData: value})
}

render(){
return <AlgoDeleteApp
onChange={this.handleChange}
appId={539166481}
/>
}

Props

PropTypeDefaultDescription
appIdintegerindex of the Algorand app