@fuel-ts/program .FunctionInvocationResult
Represents the result of a function invocation with transaction details.
Name | Type | Description |
---|
T | any | The type of the returned value. |
TTransactionType | void | The type of the transaction. |
•
new FunctionInvocationResult<
T
,
TTransactionType
>(
funcScopes
,
transactionResponse
,
transactionResult
,
program
,
isMultiCall
):
FunctionInvocationResult
<
T
,
TTransactionType
>
Constructs an instance of FunctionInvocationResult.
Name | Type |
---|
T | any |
TTransactionType | void |
Name | Type | Description |
---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
transactionResponse | TransactionResponse | The transaction response. |
transactionResult | TransactionResult <TTransactionType > | The transaction result. |
program | AbstractProgram | The program. |
isMultiCall | boolean | Whether it's a multi-call. |
•
Readonly
functionScopes:
InvocationScopeLike
[]
• Readonly
gasUsed: BN
• Readonly
isMultiCall: boolean
Icon Linklogs
• Readonly
logs: any
[]
• Readonly
program: AbstractProgram
• Readonly
transactionId: string
•
Readonly
transactionResponse:
TransactionResponse
• Readonly
transactionResult: TransactionResult
<TTransactionType
>
• Readonly
value: T
▸
getAbiFromAllCalls():
JsonAbisFromAllCalls
Gets the ABI from all calls.
The ABIs from all calls.
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Name | Type | Description |
---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
unknown
[]
The decoded logs.
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Name | Type | Description |
---|
callResult | CallResult | The call result. |
T
The decoded value.
▸
build<
T
,
TTransactionType
>(
funcScope
,
transactionResponse
,
isMultiCall
,
program
):
Promise
<
FunctionInvocationResult
<
T
,
TTransactionType
>>
Builds an instance of FunctionInvocationResult.
Name | Type |
---|
T | T |
TTransactionType | void |
Promise
<
FunctionInvocationResult
<
T
,
TTransactionType
>>
The function invocation result.