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

NameInTypeRequiredDescription

hash

path

string(string)

true

The block hash for which transaction IDs are requested

Example responses

200 Response

{
  "code": 0,
  "message": "string",
  "data": {
    "txids": [
      "string"
    ]
  }
}

Responses

StatusMeaningDescriptionSchema

200

none

Inline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription

» 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