Skip to content

Get transactions by program id and block heights list

Returns the transactions that include transitions for the program with the given program id in the given block heights list. Only valid block heights will return transactions. Use the timestamp_data query parameter to specify if you want timestamp data to be included in the transactions.

ENDPOINT
GET https://aleo-mainnet.obscura.network/v1/<API_KEY>/program/{programID}/transactions/blockHeights
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/program/{programID}/transactions/blockHeights

Arguments

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

Request Body

Type Required Description
Array Yes The block heights of the requested transactions. Must be of maximum length 1000 and consist of non-negative integers

Query parameters

Parameter Type Required Description
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.