Skip to content

Get transactions by program id

ENDPOINT
GET https://aleo-testnet3.obscura.network/v1/<API_KEY>/program/{programID}/transactions?latest={latest}&timestamp_data={timestamp_data}

Returns the transactions including transitions for the program with the given program id. Optionally, pass the latest query parameter to get the x latest (based on timestamp) transactions that include that program. Use the timestamp_data query parameter to specify if you want timestamp data to be included in the transactions.

Arguments

Parameter Type Required Description
programId string Yes The program id for the requested transactions

Query parameters

Parameter Type Required Description
latest number No Get the x latest (based on timestamp) transitions for the given program. Should be a positive integer
timestamp_data boolean No Whether to include timestamp information in the returned transactions. Accepts "true" or "false"

Response

Parameter Type Description
result Array<Transaction> The requested transactions. If the timestamp_data param is set to "true", also includes timestamp information which can be found on the field block_timestamp