generateTransaction

Description

Delegate generation of a transaction proof by providing an authorization and transaction inputs.

Method Parameters

  • params - Object:

    • authorization - string: Main transition authorization object converted into string.

    • program - string: Program source code aleo instructions.

    • fee_authorization - string: Fee transition authorization object converted into string.

    • function - string: Name of called function.

    • broadcast - boolean: Whether transaction should be broadcasted or not to the network through RPC node.

    • imports - object: Object with names of imported program as keys and said program source code as value.

Returns

  • result - string: UUID v4 token generated by RPC identifying the transaction generation job. It is not related to Aleo network, should be kept private, and only be used to retrieve generated transaction proof.

Example

Generate the authorization locally

Install Demox Labs Wasm SDK:

In order to generate the authorization & fee_authorization objects, you can use the sdk I linked above:

Request RPC

Response

See here to retrieve generated transaction proof.

Last updated