Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
InvocationResult

Icon LinkClass: InvocationResult<T>

@fuel-ts/program .InvocationResult

Represents the result of a function invocation, with decoded logs and gas usage.

Icon LinkType parameters

NameTypeDescription
TanyThe type of the returned value.

Icon LinkHierarchy

Icon LinkConstructors

Icon Linkconstructor

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

Constructs an instance of InvocationResult.

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

InvocationResult <T>

Icon LinkDefined in

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

Icon LinkProperties

Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkDefined in

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


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkDefined in

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


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkDefined in

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


Icon Linkvalue

Readonly value: T

Icon LinkDefined in

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

Icon LinkMethods

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 LinkDefined in

packages/program/src/functions/invocation-results.ts:108 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 LinkDefined in

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


Icon LinkgetFirstCallConfig

getFirstCallConfig(): undefined | CallConfig

Gets the first call config.

Icon LinkReturns

undefined | CallConfig

The first call config.

Icon LinkDefined in

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