🚀
Aleo RPC API
  • Aleo RPC API
  • endpoints
    • NFTs
      • getPublicNFTsForAddress
      • getPublicTokenProgramsForAddress
    • blocks
      • block
      • blocks
      • getAleoBlocks
      • getStateRoot
      • latest/block
      • latest/hash
      • latest/height
    • mappings
      • getMappingValue
    • programs
      • generateDeployment
      • getGeneratedDeployment
      • getProgramTypes
      • program
      • transactionsForProgram
      • transactionsForProgramCount
    • records
      • getStatePath
      • records/all
      • records/byTransitionAndIndex
      • records/isOwner
      • serialNumbers
    • staking
      • getStakedBalanceForAddress
    • status
      • chainStatus
    • transactions
      • aleoTransaction
      • generateTransaction
      • getGeneratedTransaction
      • getPublicTransactionsForAddress
      • transaction
      • transactions
    • transitions
      • getTransactionId
      • transitionsWithoutRecordInputs
Powered by GitBook
On this page
  • Description
  • Method Parameters
  • Returns
  • Example
  • Request
  • Response
  1. endpoints
  2. programs

getGeneratedDeployment

PreviousgenerateDeploymentNextgetProgramTypes

Last updated 12 months ago

Description

Returns deployment job status, result, error message.

Method Parameters

  • params - Object:

    • request_id - string: UUID v4 token generated by RPC identifying the deployment generation job when calling

Returns

  • result - Object:

    • deployment - string | null: Found deployment corresponding to provided request ID.

    • status - string: Status of the deployment generation job. One of: Queued InProgress, Completed, Failed.

    • error - string | null: Eventual error message.

    • updatedAt - string: ISO date string of last update of generation job (example: 2024-06-04T15:00:41.851Z).

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
 --header 'Content-Type: application/json' \
 --data-raw '{
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getGeneratedDeployment",
     "params": {
        "request_id": "2192e80c-e724-4b4c-a119-d11f11396604"
      }

 }'

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "deployment": null,
    "status": "Failed",
    "error": "Failed to retrieve result",
    "updatedAt": "2024-06-04T15:00:41.851Z"
  }
}
generateDeployment endpoint.