@fuel-ts/program .InvocationResult
Represents the result of a function invocation, with decoded logs and gas usage.
Name | Type | Description |
---|
T | any | The type of the returned value. |
•
new InvocationResult<
T
>(
funcScopes
,
callResult
,
isMultiCall
):
InvocationResult
<
T
>
Constructs an instance of InvocationResult.
•
Readonly
functionScopes:
InvocationScopeLike
[]
• Readonly
gasUsed: BN
• Readonly
isMultiCall: boolean
• 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.
▸
getFirstCallConfig():
undefined
|
CallConfig
Gets the first call config.
The first call config.