Arc56Method
Defined in: algokit-utils-ts/src/types/app-arc56.ts:23
Wrapper around algosdk.ABIMethod that represents an ARC-56 ABI method.
Extends
Section titled “Extends”ABIMethod
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Arc56Method(
method):Arc56Method
Defined in: algokit-utils-ts/src/types/app-arc56.ts:27
Parameters
Section titled “Parameters”method
Section titled “method”Returns
Section titled “Returns”Arc56Method
Overrides
Section titled “Overrides”algosdk.ABIMethod.constructor
Properties
Section titled “Properties”
readonlyargs:object[]
Defined in: algokit-utils-ts/src/types/app-arc56.ts:24
defaultValue?
Section titled “defaultValue?”
optionaldefaultValue?:object
The default value that clients should use.
defaultValue.data
Section titled “defaultValue.data”data:
string
Base64 encoded bytes, base64 ARC4 encoded uint64, or UTF-8 method selector
defaultValue.source
Section titled “defaultValue.source”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
defaultValue.type?
Section titled “defaultValue.type?”
optionaltype?:string
How the data is encoded. This is the encoding for the data provided here, not the arg type
optionaldesc?:string
Optional, user-friendly description for the argument
optionalname?:string
Optional, user-friendly name for the argument
struct?
Section titled “struct?”
optionalstruct?:string
If the type is a struct, the name of the struct
type:
ABIArgumentType
Overrides
Section titled “Overrides”algosdk.ABIMethod.args
description?
Section titled “description?”
readonlyoptionaldescription?:string
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:28
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.description
events?
Section titled “events?”
readonlyoptionalevents?:ARC28Event[]
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:38
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.events
method
Section titled “method”method:
Method
Defined in: algokit-utils-ts/src/types/app-arc56.ts:27
readonlyname:string
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:27
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.name
readonly?
Section titled “readonly?”
readonlyoptionalreadonly?:boolean
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:39
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.readonly
returns
Section titled “returns”
readonlyreturns:object
Defined in: algokit-utils-ts/src/types/app-arc56.ts:25
optionaldesc?:string
Optional, user-friendly description for the return value
struct?
Section titled “struct?”
optionalstruct?:string
If the type is a struct, the name of the struct
type:
ABIReturnType
Overrides
Section titled “Overrides”algosdk.ABIMethod.returns
Methods
Section titled “Methods”getSelector()
Section titled “getSelector()”getSelector():
Uint8Array
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:42
Returns
Section titled “Returns”Uint8Array
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.getSelector
getSignature()
Section titled “getSignature()”getSignature():
string
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:41
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.getSignature
toJSON()
Section titled “toJSON()”toJSON():
Method
Defined in: algokit-utils-ts/src/types/app-arc56.ts:39
Returns
Section titled “Returns”Overrides
Section titled “Overrides”algosdk.ABIMethod.toJSON
txnCount()
Section titled “txnCount()”txnCount():
number
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:43
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.txnCount
fromSignature()
Section titled “fromSignature()”
staticfromSignature(signature):ABIMethod
Defined in: node_modules/.pnpm/algosdk@3.8.0/node_modules/algosdk/dist/types/abi/method.d.ts:45
Parameters
Section titled “Parameters”signature
Section titled “signature”string
Returns
Section titled “Returns”ABIMethod
Inherited from
Section titled “Inherited from”algosdk.ABIMethod.fromSignature