🚀
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

getProgramTypes

Returns type of multiple programs from their IDs, ie: which standard they implement.

Description

Method Parameters

  • params - Object:

    • programs - Array<string>: List of Program IDs (example: credits.aleo).

Returns

  • result - Object: An object with requested program IDs as keys and implemented standard as value.

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
  --header 'Content-Type:  application/json' \
  --data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getProgramTypes",
    "params": {
      "programs": [
        "hello_world.aleo"
        "arcane_nft_v00002.aleo"
      ]
    }
  }'

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "hello_world.aleo": "untyped",
    "arcane_nft_v00002.aleo": "nft"
  }
}
PreviousgetGeneratedDeploymentNextprogram

Last updated 12 months ago