Skip to content

Class: InvocationResult<T>

@fuel-ts/program.InvocationResult

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

Type parameters

NameTypeDescription
TanyThe type of the returned value.

Hierarchy

Constructors

constructor

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

Constructs an instance of InvocationResult.

Type parameters

NameType
Tany

Parameters

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

Returns

InvocationResult<T>

Defined in

functions/invocation-results.ts:53

Properties

functionScopes

Readonly functionScopes: InvocationScopeLike[]

Defined in

functions/invocation-results.ts:41


gasUsed

Readonly gasUsed: BN

Defined in

functions/invocation-results.ts:43


isMultiCall

Readonly isMultiCall: boolean

Defined in

functions/invocation-results.ts:42


value

Readonly value: T

Defined in

functions/invocation-results.ts:44

Methods

getAbiFromAllCalls

getAbiFromAllCalls(): JsonAbisFromAllCalls

Gets the ABI from all calls.

Returns

JsonAbisFromAllCalls

The ABIs from all calls.

Defined in

functions/invocation-results.ts:83


getDecodedLogs

getDecodedLogs(receipts): unknown[]

Decodes the logs from the receipts.

Parameters

NameTypeDescription
receiptsTransactionResultReceipt[]The transaction result receipts.

Returns

unknown[]

The decoded logs.

Defined in

functions/invocation-results.ts:119


getDecodedValue

getDecodedValue(callResult): T

Decodes the value from the call result.

Parameters

NameTypeDescription
callResultCallResultThe call result.

Returns

T

The decoded value.

Defined in

functions/invocation-results.ts:93


getFirstCallConfig

getFirstCallConfig(): undefined | CallConfig

Gets the first call config.

Returns

undefined | CallConfig

The first call config.

Defined in

functions/invocation-results.ts:69