generateDeployment

Description

Delegate proof generation of a program deployment.

Method Parameters

  • params - Object:

    • program - string: Program source code aleo instructions.

Returns

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

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
  --header 'Content-Type:  application/json' \
  --data-raw '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "program",
    "params": {
        "program": "program hello_hello.aleo;\n\nfunction hello:\n    input r0 as u32.public;\n    input r1 as u32.private;\n    add r0 r1 into r2;\n    output r2 as u32.private;\n"
    }
  }'

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "2192e80c-e724-4b4c-a119-d11f11396604"
}

See here to retrieve generated deployment.

Last updated