Skip to content

Get transactions by program id and timestamps

Returns the transactions that include transition for the program with the given program id within the given timestamps range. The provided timestamp difference cannot be over 24 hours. 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/timestamps?start={startTimestamp}&end={endTimestamp}&timestamp_data={timestamp_data}
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/program/{programID}/transactions/timestamps?start={startTimestamp}&end={endTimestamp}&timestamp_data={timestamp_data}

Arguments

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

Query Parameters

Parameter Type Required Description
startTimestamp number Yes The starting timestamp of the requested transactions. Should be a nonnegative integer.
endTimestamp number Yes The ending timestamp of the requested transactions. Should be a nonnegative integer and greater or equal than startTimestamp. endTimestamp is inclusive.
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 array of transactions for the given program ID in the given timestamps range. If the timestamp_data param is set to "true", also includes timestamp information which can be found on the field block_timestamp