Class: InvocationResult<T>
@fuel-ts/program.InvocationResult
Represents the result of a function invocation, with decoded logs and gas usage.
Type parameters
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
Hierarchy
InvocationResult
Constructors
constructor
• new InvocationResult<T
>(funcScopes
, callResult
, isMultiCall
): InvocationResult
<T
>
Constructs an instance of InvocationResult.
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
Returns
Defined in
functions/invocation-results.ts:53
Properties
functionScopes
• Readonly
functionScopes: InvocationScopeLike
[]
Defined in
functions/invocation-results.ts:41
gasUsed
• Readonly
gasUsed: BN
Defined in
functions/invocation-results.ts:43
isMultiCall
• Readonly
isMultiCall: boolean
Defined in
functions/invocation-results.ts:42
value
• Readonly
value: T
Defined in
functions/invocation-results.ts:44
Methods
getAbiFromAllCalls
▸ getAbiFromAllCalls(): JsonAbisFromAllCalls
Gets the ABI from all calls.
Returns
The ABIs from all calls.
Defined in
functions/invocation-results.ts:83
getDecodedLogs
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Parameters
Name | Type | Description |
---|---|---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
Returns
unknown
[]
The decoded logs.
Defined in
functions/invocation-results.ts:119
getDecodedValue
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Parameters
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
Returns
T
The decoded value.
Defined in
functions/invocation-results.ts:93
getFirstCallConfig
▸ getFirstCallConfig(): undefined
| CallConfig
Gets the first call config.
Returns
undefined
| CallConfig
The first call config.