Skip to main content

AeonClient.prepareSigning(params: PrepareSigningParams): AeonClient

This AeonClient method takes a txId (identifying a previously defined transaction intent) and a workspaceId to specify the context. This method queues an operation. When aeonClient.build() is subsequently called, the backend service will:
  1. Retrieve the full transaction details associated with the provided txId and workspaceId.
  2. Ensure all necessary parameters for signing are present and valid. This can involve fetching current on-chain data such as the sender’s nonce or prevailing gas prices, especially if these were not finalized in the original transaction intent or need re-validation.
  3. Construct and serialize the transaction into a chain-specific signable format.
The AeonClient instance is returned to allow for chaining of other operations before calling build().

Parameters

  • params: PrepareSigningParams - An object containing:
    • txId: string - The unique identifier of a previously defined or simulated transaction intent. The backend uses this ID to retrieve the transaction details.
    • workspaceId: string - The identifier of the workspace in which the transaction (txId) exists and is being prepared.

Conceptual Example: aeonClient.prepareSigning()