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

Icon LinkDefined in

Icon LinkProperties

Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkDefined in


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkDefined in


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkDefined in


Icon Linkvalue

Readonly value: T

Icon LinkDefined in

Icon LinkMethods

Icon LinkgetAbiFromAllCalls

getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.

Icon LinkReturns

The ABIs from all calls.

Icon LinkDefined in


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


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


Icon LinkgetFirstCallConfig

getFirstCallConfig(): undefined | CallConfig
Gets the first call config.

Icon LinkReturns

undefined | CallConfig
The first call config.

Icon LinkDefined in