Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
InvocationCallResult

Icon LinkClass: InvocationCallResult<T>

@fuel-ts/program .InvocationCallResult

Represents the result of an invocation call.

Icon LinkType parameters

NameTypeDescription
TanyThe type of the returned value.

Icon LinkHierarchy

Icon LinkConstructors

Icon Linkconstructor

new InvocationCallResult<T>(funcScopes, callResult, isMultiCall): InvocationCallResult <T>

Constructs an instance of InvocationCallResult.

Icon LinkType parameters

NameType
Tany

Icon LinkParameters

NameTypeDescription
funcScopesInvocationScopeLike | InvocationScopeLike []The function scopes.
callResultCallResult The call result.
isMultiCallbooleanWhether it's a multi-call.

Icon LinkReturns

InvocationCallResult <T>

Icon LinkOverrides

InvocationResult .constructor

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:213 Icon Link

Icon LinkProperties

Icon LinkcallResult

Readonly callResult: CallResult

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:204 Icon Link


Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkInherited from

InvocationResult .functionScopes

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:41 Icon Link


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkInherited from

InvocationResult .gasUsed

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:43 Icon Link


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkInherited from

InvocationResult .isMultiCall

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:42 Icon Link


Icon Linkvalue

Readonly value: T

Icon LinkInherited from

InvocationResult .value

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:44 Icon Link

Icon LinkMethods

Icon LinkgetAbiFromAllCalls

getAbiFromAllCalls(): JsonAbisFromAllCalls

Gets the ABI from all calls.

Icon LinkReturns

JsonAbisFromAllCalls

The ABIs from all calls.

Icon LinkInherited from

InvocationResult .getAbiFromAllCalls

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:83 Icon Link


Icon LinkgetDecodedLogs

getDecodedLogs(receipts): unknown[]

Decodes the logs from the receipts.

Icon LinkParameters

NameTypeDescription
receiptsTransactionResultReceipt[]The transaction result receipts.

Icon LinkReturns

unknown[]

The decoded logs.

Icon LinkInherited from

InvocationResult .getDecodedLogs

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:119 Icon Link


Icon LinkgetDecodedValue

getDecodedValue(callResult): T

Decodes the value from the call result.

Icon LinkParameters

NameTypeDescription
callResultCallResult The call result.

Icon LinkReturns

T

The decoded value.

Icon LinkInherited from

InvocationResult .getDecodedValue

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:93 Icon Link


Icon Linkbuild

build<T>(funcScopes, callResult, isMultiCall): Promise<InvocationCallResult <T>>

Builds an instance of InvocationCallResult.

Icon LinkType parameters

Name
T

Icon LinkParameters

NameTypeDescription
funcScopesInvocationScopeLike | InvocationScopeLike []The function scopes.
callResultCallResult The call result.
isMultiCallbooleanWhether it's a multi-call.

Icon LinkReturns

Promise<InvocationCallResult <T>>

The invocation call result.

Icon LinkDefined in

packages/program/src/functions/invocation-results.ts:230 Icon Link