abimethod
Algorand TypeScript / arc4 / abimethod
abimethod<
TContract>(config?): <TArgs,TReturn>(target,ctx) => (this, …args) =>TReturn
Defined in: arc4/index.ts:155
Declares the decorated method as an abimethod that is called when the first transaction arg matches the method selector
Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract
the type of the contract this method is a part of
Parameters
Section titled “Parameters”config?
Section titled “config?”AbiMethodConfig<TContract>
The config for this abi method
Returns
Section titled “Returns”<
TArgs,TReturn>(target,ctx): (this, …args) =>TReturn
Type Parameters
Section titled “Type Parameters”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