ConfirmTransaction

Confirms a saved transaction request and prepares it for execution by updating its status from SAVED to READY.

Process flow:

  1. Validates the saved transaction request parameters

  2. Calculates and populates gas fees, nonce, and other blockchain-specific fields

  3. Updates status to READY, making it available for execution

  4. Sets expiration time for the confirmed transaction

When to use:

  • After creating a transaction request with status:\ "SAVED"

  • Before calling the execute endpoint to complete the transaction

  • When you're ready to finalize gas calculations and network parameters

Important notes:

  • Only works with transaction requests in SAVED status

  • Gas fields will be auto-populated based on current network conditions

  • The confirmed transaction will have an expiration time after which it cannot be executed

void ConfirmTransaction(FString Id, const FVyUserAuth& SigningMethod, const FVyConfirmTransactionRequest& Params, const FVyOnConfirmTransactionComplete& OnComplete) const;

Parameters

Id

FString

UUID of the transaction request to confirm

SigningMethod

FVyUserAuth

The Id and Value of one of the user's registered signing-methods

Params

Parameters for this operation (FVyConfirmTransactionRequest)

OnComplete

FVyOnConfirmTransactionComplete

The callback function called when the user preferences retrieval operation is complete.

OnComplete Callback (FVyOnConfirmTransactionComplete) Contains a FVyConfirmTransactionResultDto response type

Last updated