readonly
Algorand TypeScript / arc4 / readonly
readonly<
TContract,TArgs,TReturn>(target,ctx): (this, …args) =>TReturn
Defined in: arc4/index.ts:169
Declares this abi method does not mutate chain state and can be called using a simulate call to the same effect.
Shorthand for @abimethod({readonly: true})
Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract
the type of the contract this method is a part of
TArgs extends any[]
TReturn
Section titled “TReturn”TReturn
Parameters
Section titled “Parameters”target
Section titled “target”(this, …args) => TReturn
ClassMethodDecoratorContext<TContract>
Returns
Section titled “Returns”(
this, …args):TReturn
Parameters
Section titled “Parameters”TContract
…TArgs
Returns
Section titled “Returns”TReturn