program

Description

Returns program source code corresponding to a specific program ID.

Method Parameters

  • params - Object:

    • id - string: Program ID (example: credits.aleo).

Returns

  • result - string: Program source code aleo instructions.

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": {
        "id": "helloworld.aleo"
    }
  }'

Response

Last updated