transactionsForProgram

Description

Returns all transactions involving a specific program ID and function name.

1000 transactions can be retrieved per request maximum.

Method Parameters

  • params - Object:

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

    • functionName - string: Name of the program function.

    • page - number: Page number to get.

    • maxTransactions - number: Name of the program function. Must be lower than 1000.

Returns

  • result - Array<Object>: An array of transaction objects.

    • Transaction object:

      • status - string: The status of the transaction (e.g., "accepted").

      • type - string: The type of the transaction (e.g., "execute").

      • index - number: The index of the transaction within the block.

      • transaction - Object: The transaction details.

        • type - string: The type of the transaction.

        • id - string: The transaction ID.

        • execution - Object: Execution details of the transaction.

          • transitions - Array<Object>: An array of transition objects.

            • id - string: The transition ID.

            • program - string: The program ID.

            • function - string: The function name.

            • inputs - Array<Object>: An array of input objects.

              • type - string: The type of the input (e.g., "record", "private").

              • id - string: The input ID.

              • value - string: The value of the input (optional).

              • tag - string: The tag of the input (optional).

            • outputs - Array<Object>: An array of output objects.

              • type - string: The type of the output (e.g., "record").

              • id - string: The output ID.

              • checksum - string: The checksum of the output (optional).

              • value - string: The value of the output (optional).

            • tpk - string: The transition public key.

            • tcm - string: The transition commitment.

          • global_state_root - string: The global state root after the transaction.

          • proof - string: The proof of the transaction.

        • fee - Object: Fee details of the transaction.

          • transition - Object: The fee transition details.

            • id - string: The transition ID.

            • program - string: The program ID.

            • function - string: The function name.

            • inputs - Array<Object>: An array of input objects for the fee transition.

              • type - string: The type of the input.

              • id - string: The input ID.

              • value - string: The value of the input (optional).

            • outputs - Array<Object>: An array of output objects for the fee transition.

              • type - string: The type of the output.

              • id - string: The output ID.

              • value - string: The value of the output (optional).

            • tpk - string: The transition public key.

            • tcm - string: The transition commitment.

          • global_state_root - string: The global state root after the fee transaction.

          • proof - string: The proof of the fee transaction.

        • finalize - Array<Object>: An array of finalize objects.

          • type - string: The type of the finalize operation (e.g., "update_key_value").

          • mapping_id - string: The mapping ID.

          • index - number: The index within the mapping.

          • key_id - string: The key ID.

          • value_id - string: The value ID.

        • finalizedAt - string: The timestamp when the transaction was finalized.

Example

Request

Response

Last updated