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

functions/invocation-results.ts:53 Icon Link

Icon LinkProperties

Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkDefined in

functions/invocation-results.ts:41 Icon Link


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkDefined in

functions/invocation-results.ts:43 Icon Link


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkDefined in

functions/invocation-results.ts:42 Icon Link


Icon Linkvalue

Readonly value: T

Icon LinkDefined in

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

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

functions/invocation-results.ts:118 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

functions/invocation-results.ts:93 Icon Link


Icon LinkgetFirstCallConfig

getFirstCallConfig(): undefined | CallConfig

Gets the first call config.

Icon LinkReturns

undefined | CallConfig

The first call config.

Icon LinkDefined in

functions/invocation-results.ts:69 Icon Link