🚀
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
  • Result
  1. endpoints
  2. programs

transactionsForProgramCount

Description

Returns the amount of transactions involving a specific program ID and function name.

Method Parameters

  • params - Object:

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

    • functionName - string: Name of the program function.

Returns

  • result - number: Amount of transactions found.

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "transactionsForProgramCount",
    "params": {
      "programId": "hello_world.aleo",
      "functionName": "hello"
    }
}'

Result

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 1
}
PrevioustransactionsForProgramNextrecords

Last updated 12 months ago