Skip to content

Arc56Method

Defined in: algokit-utils-ts/src/types/app-arc56.ts:23

Wrapper around algosdk.ABIMethod that represents an ARC-56 ABI method.

  • ABIMethod

new Arc56Method(method): Arc56Method

Defined in: algokit-utils-ts/src/types/app-arc56.ts:27

Method

Arc56Method

algosdk.ABIMethod.constructor

readonly args: object[]

Defined in: algokit-utils-ts/src/types/app-arc56.ts:24

optional defaultValue?: object

The default value that clients should use.

data: string

Base64 encoded bytes, base64 ARC4 encoded uint64, or UTF-8 method selector

source: "method" | "box" | "global" | "local" | "literal"

Where the default value is coming from

  • box: The data key signifies the box key to read the value from
  • global: The data key signifies the global state key to read the value from
  • local: The data key signifies the local state key to read the value from (for the sender)
  • literal: the value is a literal and should be passed directly as the argument
  • method: The utf8 signature of the method in this contract to call to get the default value. If the method has arguments, they all must have default values. The method MUST be readonly so simulate can be used to get the default value

optional type?: string

How the data is encoded. This is the encoding for the data provided here, not the arg type

optional desc?: string

Optional, user-friendly description for the argument

optional name?: string

Optional, user-friendly name for the argument

optional struct?: string

If the type is a struct, the name of the struct

type: ABIArgumentType

algosdk.ABIMethod.args


readonly optional description?: string

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:28

algosdk.ABIMethod.description


readonly optional events?: ARC28Event[]

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:38

algosdk.ABIMethod.events


method: Method

Defined in: algokit-utils-ts/src/types/app-arc56.ts:27


readonly name: string

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:27

algosdk.ABIMethod.name


readonly optional readonly?: boolean

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:39

algosdk.ABIMethod.readonly


readonly returns: object

Defined in: algokit-utils-ts/src/types/app-arc56.ts:25

optional desc?: string

Optional, user-friendly description for the return value

optional struct?: string

If the type is a struct, the name of the struct

type: ABIReturnType

algosdk.ABIMethod.returns

getSelector(): Uint8Array

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:42

Uint8Array

algosdk.ABIMethod.getSelector


getSignature(): string

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:41

string

algosdk.ABIMethod.getSignature


toJSON(): Method

Defined in: algokit-utils-ts/src/types/app-arc56.ts:39

Method

algosdk.ABIMethod.toJSON


txnCount(): number

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:43

number

algosdk.ABIMethod.txnCount


static fromSignature(signature): ABIMethod

Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:45

string

ABIMethod

algosdk.ABIMethod.fromSignature