Constructs an instance of FunctionInvocationScope.
The program.
The function fragment.
The arguments.
ProtectedargsProtected OptionalassembleProtectedexternalProtectedfuncProtectedfunctionProtectedhasProtectedisProtectedprogramProtectedrequiredProtectedtransactionProtected OptionaltxProtectedcallsGetter for the contract calls.
An array of contract calls.
Adds multiple transfers to the contract call transaction request.
An array of TransferParams objects representing the transfers to be made.
The current instance of the class.
ProtectedaddAdds a single call to the invocation scope.
The function scope to add.
The current instance of the class.
ProtectedaddAdds multiple calls to the invocation scope.
An array of function scopes to add.
The current instance of the class.
Adds contracts to the invocation scope.
An array of contracts to add.
The current instance of the class.
Adds signers to the transaction request.
The current instance of the class.
This method is deprecated and will be removed in a future versions. All signatures should be manually added to the transaction request witnesses. If your Sway program relies on in-code signature validation, visit this guide: https://docs.fuel.network/docs/fuels-ts/cookbook/sway-script-with-signature-validation/
Adds an asset transfer to an Account on the contract call transaction request.
The object representing the transfer to be made.
The current instance of the class.
Sets the transaction parameters.
The current instance of the class.
Submits the contract call transaction and returns a promise that resolves to an object containing the transaction ID and a function to wait for the result. The promise will resolve as soon as the transaction is submitted to the node.
The type of the return value.
Optionalparams: { Optional parameters for the call.
skipAssembleTx: A boolean indicating whether to skip assembling the transaction. This is useful
when customizations were made to the transaction request using the assembleTx method.OptionalskipA promise that resolves to an object containing:
transactionId: The ID of the submitted transaction.waitForResult: A function that waits for the transaction result.waitForPreConfirmation: A function that waits for the transaction pre-confirmation.Sets the call parameters for the function invocation.
The call parameters.
The instance of FunctionInvocationScope.
ProtectedcheckExecutes a transaction in dry run mode.
The result of the invocation call.
Sets the transaction request. Useful when you have used getTransactionRequest or
fundWithRequiredCoins from the scope to apply customizations to the transaction request.
The transaction request to set.
The current instance of the class.
Funds the transaction request with the required coins and returns it.
The transaction request.
Gets the call configuration.
The call configuration.
ProtectedgetGets the required coins for the transaction.
An array of required coin quantities.
Gets the transaction cost for dry running the transaction.
The transaction cost details.
Use contract.fundWithRequiredCoins instead Check the migration guide https://docs.fuel.network/docs/fuels-ts/transactions/assemble-tx-migration-guide/ for more information.
Prepares and returns the transaction request object.
The prepared transaction request.
ProtectedprepareSets the arguments for the function invocation.
Rest...args: TArgsThe arguments.
The instance of FunctionInvocationScope.
Simulates a transaction.
The result of the invocation call.
Sets the transaction parameters.
The transaction parameters to set.
The current instance of the class.
ProtectedupdateProtectedupdateProtectedupdate
Represents a scope for invoking a function.