首页 宝鸡信息 宝鸡资讯

BlockCypher

(来源:网站编辑 2025-10-01 08:06)
文章正文

Get notified on any blockchain event

{
  "event": "unconfirmed-tx",
  "url": "https://mysite.com/callbacks"
  "address": "15qx9ug952GWGTNn7Uiv6vode4RcGrRemh",
  "token": "0aad35a575ebf058e61116a65"
}

Multisig

Request multiple signatures

{
  "inputs": [{"addresses": [sourceAddr]}],
  "outputs": [{
  "addresses" : [pubkey1, pubkey2, pubkey3],
  "script_type" : "multisig-2-of-3",
  "value" : 250000,
}

Accept Payments

Get unique payment addresses that forward automatically

$ curl https://api.blockcypher.com/v1/btc/main/payments
{
  "input_address": "16uKw7GsQSzfMaVTcT7...",
  "destination" : "15qx9ug952GWGTNn7Uiv...",
  "callback_url": "https://mydomain.com/cb/payments"
  "token" : "37048cd01f250eca918ab55b658de3ec"
}

Query Addresses

Quickly get data on a specific address

$ curl https://api.blockcypher.com/v1/btc/main/addrs/1PuwQ6uWXNeGcEnLCAXmRJozdLZ9M4NWQ7
{   "address": "1PuwQ6uWXNeGcEnLCAXmRJozdLZ9M4NWQ7",
  "balance": 0,
  "unconfirmed_balance": 0,
  "txrefs": [...]
}

Browse the Blockchain

Retrieve blocks and transactions

# Using https://github.com/trentm/json
$ curl -s https://api.blockcypher.com/v1/btc/main \
| json latest_url \
| xargs curl -s \
| json prev_block_url \
| xargs curl -s

首页
评论
分享
Top