Skip to content

abimethod

Algorand TypeScript


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

TContract extends Contract

the type of the contract this method is a part of

AbiMethodConfig<TContract>

The config for this abi method

<TArgs, TReturn>(target, ctx): (this, …args) => TReturn

TArgs extends any[]

TReturn

(this, …args) => TReturn

ClassMethodDecoratorContext<TContract>

(this, …args): TReturn

TContract

TArgs

TReturn