Get Block Txids

Retrieve transaction IDs for a specific block hash in the Bitcoin blockchain

Code samples


const headers = {
  'Accept':'application/json'
};

fetch('/bitcoin/block/{hash}/txids',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

GET /bitcoin/block/{hash}/txids

Parameters

Name
In
Type
Required
Description

hash

path

string(string)

true

The block hash for which transaction IDs are requested

Example responses

200 Response

Responses

Status
Meaning
Description
Schema

200

none

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» code

integer(int)

false

none

Error code

» message

string(string)

false

none

Error message

» data

object

false

none

Result data

»» txids

[string]

false

none

List of transaction IDs for the specified block hash

Last updated