AppID
A stateful Algorand application
Extended by
Constructors
new AppID()
new AppID():
AppID
Returns
Properties
address
readonlyaddress:Address
The contract address for this application
Source
approvalProgram
readonlyapprovalProgram:Brand<string,"bytes">
The approval program for the application
Source
clearStateProgram
readonlyclearStateProgram:Brand<string,"bytes">
The clear state program for the application
Source
creator
readonlycreator:Address
The creator of this application
Source
extraProgramPages
readonlyextraProgramPages:uint64
The number of extra program pages
Source
globalNumByteSlice
readonlyglobalNumByteSlice:uint64
The number of reserved byteslices in global state
Source
globalNumUint
readonlyglobalNumUint:uint64
The number of reserved uint64s in global state
Source
id
readonlyid:uint64
The application index
Source
localNumByteSlice
readonlylocalNumByteSlice:uint64
The number of reserved byteslices in local state
Source
localNumUint
readonlylocalNumUint:uint64
The number of reserved uint64s in local state
Source
zeroIndex
staticreadonlyzeroIndex: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
someApp.globalState('someKey') as uint64[];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
someApp.localState(this.txn.sender, 'someKey') as uint64[];Source
fromUint64()
staticfromUint64(appID):AppID
Get an Application instance for the application with the given application index
Parameters
• appID: uint64