AppID
A stateful Algorand application
Extended by
Constructors
new AppID()
new AppID():
AppID
Returns
Properties
address
readonly
address:Address
The contract address for this application
Source
approvalProgram
readonly
approvalProgram:Brand
<string
,"bytes"
>
The approval program for the application
Source
clearStateProgram
readonly
clearStateProgram:Brand
<string
,"bytes"
>
The clear state program for the application
Source
creator
readonly
creator:Address
The creator of this application
Source
extraProgramPages
readonly
extraProgramPages:uint64
The number of extra program pages
Source
globalNumByteSlice
readonly
globalNumByteSlice:uint64
The number of reserved byteslices in global state
Source
globalNumUint
readonly
globalNumUint:uint64
The number of reserved uint64s in global state
Source
id
readonly
id:uint64
The application index
Source
localNumByteSlice
readonly
localNumByteSlice:uint64
The number of reserved byteslices in local state
Source
localNumUint
readonly
localNumUint:uint64
The number of reserved uint64s in local state
Source
zeroIndex
static
readonly
zeroIndex:AppID
Application index 0
Source
Methods
globalState()
globalState(
key
):unknown
Get the global state value for the given key. MUST use an as expression to specify the value type.
Parameters
• key: BytesLike
Returns
unknown
Example
Source
globalStateExists()
globalStateExists(
key
):boolean
Check if the given key exists in the global state
Parameters
• key: BytesLike
Returns
boolean
Source
localState()
localState(
account
,key
):unknown
Get the local state value for the given account and key. MUST use an as expression to specify the value type.
Parameters
• account: Address
• key: BytesLike
Returns
unknown
Example
Source
localStateExists()
localStateExists(
account
,key
):boolean
Check if the given key exists in the local state
Parameters
• account: Address
• key: BytesLike
Returns
boolean
Source
fromUint64()
static
fromUint64(appID
):AppID
Get an Application
instance for the application with the given application index
Parameters
• appID: uint64