Skip to content

Class: InvocationCallResult<T>

@fuel-ts/program.InvocationCallResult

Represents the result of an invocation call.

Type parameters

NameTypeDescription
TanyThe type of the returned value.

Hierarchy

Constructors

constructor

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

Constructs an instance of InvocationCallResult.

Type parameters

NameType
Tany

Parameters

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

Returns

InvocationCallResult<T>

Overrides

InvocationResult.constructor

Defined in

functions/invocation-results.ts:213

Properties

callResult

Readonly callResult: CallResult

Defined in

functions/invocation-results.ts:204


functionScopes

Readonly functionScopes: InvocationScopeLike[]

Inherited from

InvocationResult.functionScopes

Defined in

functions/invocation-results.ts:41


gasUsed

Readonly gasUsed: BN

Inherited from

InvocationResult.gasUsed

Defined in

functions/invocation-results.ts:43


isMultiCall

Readonly isMultiCall: boolean

Inherited from

InvocationResult.isMultiCall

Defined in

functions/invocation-results.ts:42


value

Readonly value: T

Inherited from

InvocationResult.value

Defined in

functions/invocation-results.ts:44

Methods

getAbiFromAllCalls

getAbiFromAllCalls(): JsonAbisFromAllCalls

Gets the ABI from all calls.

Returns

JsonAbisFromAllCalls

The ABIs from all calls.

Inherited from

InvocationResult.getAbiFromAllCalls

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.

Inherited from

InvocationResult.getDecodedLogs

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.

Inherited from

InvocationResult.getDecodedValue

Defined in

functions/invocation-results.ts:93


build

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

Builds an instance of InvocationCallResult.

Type parameters

Name
T

Parameters

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

Returns

Promise<InvocationCallResult<T>>

The invocation call result.

Defined in

functions/invocation-results.ts:230