Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
FunctionInvocationResult

Icon LinkClass: FunctionInvocationResult<T, TTransactionType>

@fuel-ts/program .FunctionInvocationResult

Represents the result of a function invocation with transaction details.

Icon LinkType parameters

NameTypeDescription
TanyThe type of the returned value.
TTransactionTypevoidThe type of the transaction.

Icon LinkHierarchy

Icon LinkConstructors

Icon Linkconstructor

new FunctionInvocationResult<T, TTransactionType>(funcScopes, transactionResponse, transactionResult, program, isMultiCall): FunctionInvocationResult <T, TTransactionType>

Constructs an instance of FunctionInvocationResult.

Icon LinkType parameters

NameType
Tany
TTransactionTypevoid

Icon LinkParameters

NameTypeDescription
funcScopesInvocationScopeLike | InvocationScopeLike []The function scopes.
transactionResponseTransactionResponse The transaction response.
transactionResultTransactionResult<TTransactionType>The transaction result.
programAbstractProgramThe program.
isMultiCallbooleanWhether it's a multi-call.

Icon LinkReturns

FunctionInvocationResult <T, TTransactionType>

Icon LinkOverrides

InvocationResult .constructor

Icon LinkDefined in

functions/invocation-results.ts:155 Icon Link

Icon LinkProperties

Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkInherited from

InvocationResult .functionScopes

Icon LinkDefined in

functions/invocation-results.ts:41 Icon Link


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkInherited from

InvocationResult .gasUsed

Icon LinkDefined in

functions/invocation-results.ts:43 Icon Link


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkInherited from

InvocationResult .isMultiCall

Icon LinkDefined in

functions/invocation-results.ts:42 Icon Link


Icon Linklogs

Readonly logs: any[]

Icon LinkDefined in

functions/invocation-results.ts:144 Icon Link


Icon Linkprogram

Readonly program: AbstractProgram

Icon LinkDefined in

functions/invocation-results.ts:143 Icon Link


Icon LinktransactionId

Readonly transactionId: string

Icon LinkDefined in

functions/invocation-results.ts:140 Icon Link


Icon LinktransactionResponse

Readonly transactionResponse: TransactionResponse

Icon LinkDefined in

functions/invocation-results.ts:141 Icon Link


Icon LinktransactionResult

Readonly transactionResult: TransactionResult<TTransactionType>

Icon LinkDefined in

functions/invocation-results.ts:142 Icon Link


Icon Linkvalue

Readonly value: T

Icon LinkInherited from

InvocationResult .value

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 LinkInherited from

InvocationResult .getAbiFromAllCalls

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 LinkInherited from

InvocationResult .getDecodedLogs

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 LinkInherited from

InvocationResult .getDecodedValue

Icon LinkDefined in

functions/invocation-results.ts:93 Icon Link


Icon Linkbuild

build<T, TTransactionType>(funcScope, transactionResponse, isMultiCall, program): Promise<FunctionInvocationResult <T, TTransactionType>>

Builds an instance of FunctionInvocationResult.

Icon LinkType parameters

NameType
TT
TTransactionTypevoid

Icon LinkParameters

NameTypeDescription
funcScopeInvocationScopeLike | InvocationScopeLike []The function scope.
transactionResponseTransactionResponse The transaction response.
isMultiCallbooleanWhether it's a multi-call.
programAbstractProgramThe program.

Icon LinkReturns

Promise<FunctionInvocationResult <T, TTransactionType>>

The function invocation result.

Icon LinkDefined in

functions/invocation-results.ts:179 Icon Link