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

Icon LinkDefined in

Icon LinkProperties

Icon LinkfunctionScopes

Readonly functionScopes: InvocationScopeLike []

Icon LinkInherited from

Icon LinkDefined in


Icon LinkgasUsed

Readonly gasUsed: BN

Icon LinkInherited from

Icon LinkDefined in


Icon LinkisMultiCall

Readonly isMultiCall: boolean

Icon LinkInherited from

Icon LinkDefined in


Icon Linklogs

Readonly logs: any[]

Icon LinkDefined in


Icon Linkprogram

Readonly program: AbstractProgram

Icon LinkDefined in


Icon LinktransactionId

Readonly transactionId: string

Icon LinkDefined in


Icon LinktransactionResponse

Readonly transactionResponse: TransactionResponse

Icon LinkDefined in


Icon LinktransactionResult

Readonly transactionResult: TransactionResult<TTransactionType>

Icon LinkDefined in


Icon Linkvalue

Readonly value: T

Icon LinkInherited from

Icon LinkDefined in

Icon LinkMethods

Icon LinkgetAbiFromAllCalls

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

Icon LinkReturns

The ABIs from all calls.

Icon LinkInherited from

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

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

Icon LinkDefined in


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