Skip to main content

Block transactions

GET /blocks/:hash_or_number/txs

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

Return the transactions within the block.

Request

Path Parameters

    hash_or_number 64-character case-sensitive hexadecimal string or block number. required

    Hash of the requested block.

    Example: 4873401

Query Parameters

    count integer

    Possible values: >= 1 and <= 100

    Default value: 100

    The number of results displayed on one page.

    page integer

    Possible values: >= 1 and <= 21474836

    Default value: 1

    The page number for listing the results.

    order string

    Possible values: [asc, desc]

    Default value: asc

    Ordered by tx index in the block. The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last.

Responses

Return the contents of the block


Schema
  • Array [
  • string

    Hash of the transaction

  • ]
GET /blocks/:hash_or_number/txs

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

Request

Base URL
https://cardano-mainnet.blockfrost.io/api/v0
project_id
hash_or_number — path required
count — query
page — query
order — query
curl / cURL
curl -L -X GET 'https://cardano-mainnet.blockfrost.io/api/v0/blocks/:hash_or_number/txs' \
-H 'Accept: application/json' \
-H 'project_id: <API_KEY_VALUE>'