Dies ist ein Testnetzwerk. Coins haben keinen Wert.

Dokumentation

General

Addresses

Blocks

Mining

Fees

Mempool

Transactions

Lightning

Below is a reference for the Testnet REST-API-Dienst.

General

GET Difficulty Adjustment general
Beschreibung
Returns details about difficulty adjustment.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/difficulty-adjustment"
Antwort
{
progressPercent: 44.397234501112074,
difficultyChange: 98.45932018381687,
estimatedRetargetDate: 1627762478,
remainingBlocks: 1121,
remainingTime: 665977,
previousRetarget: -4.807005268478962,
nextRetargetHeight: 741888,
timeAvg: 302328,
adjustedTimeAvg: 302328,
timeOffset: 0
}

Addresses

GET Address addresses
Beschreibung
Returns details about an address. Available fields: address, chain_stats, and mempool_stats. chain_stats and mempool_stats each contain an object with tx_count, funded_txo_count, funded_txo_sum, spent_txo_count, and spent_txo_sum.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/address/tb1qp0we5epypgj4acd2c4au58045ruud2pd6heuee"
Antwort
{
address: "tb1qp0we5epypgj4acd2c4au58045ruud2pd6heuee",
chain_stats: {
funded_txo_count: 6747,
funded_txo_sum: 84313783821,
spent_txo_count: 0,
spent_txo_sum: 0,
tx_count: 6747
},
mempool_stats: {
funded_txo_count: 0,
funded_txo_sum: 0,
spent_txo_count: 0,
spent_txo_sum: 0,
tx_count: 0
}
}
GET Address Transactions addresses
Beschreibung
Get transaction history for the specified address/scripthash, sorted with newest first. Returns up to 50 mempool transactions plus the first 25 confirmed transactions. You can request more confirmed transactions using an after_txid query parameter.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/address/tb1qp0we5epypgj4acd2c4au58045ruud2pd6heuee/txs"
Antwort
[
{
txid: "3e6afd67862ce9fe3eb55268a3107f495415ff1b5d1933c928507e9bdf7a21e6",
version: 2,
locktime: 0,
vin: [],
vout: [],
size: 211,
weight: 736,
fee: 0,
status: {
confirmed: true,
block_height: 2091086,
block_hash: "00000000340f3667cce7032d084973ca29bdd0d858ec363ed894ad4c8ed09ebc",
block_time: 1630607773
}
},
...
]
GET Address Transactions Chain addresses
Beschreibung
Get confirmed transaction history for the specified address/scripthash, sorted with newest first. Returns 25 transactions per page. More can be requested by specifying the last txid seen by the previous query.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/address/tb1qp0we5epypgj4acd2c4au58045ruud2pd6heuee/txs/chain"
Antwort
[
{
txid: "3e6afd67862ce9fe3eb55268a3107f495415ff1b5d1933c928507e9bdf7a21e6",
version: 2,
locktime: 0,
vin: [],
vout: [],
size: 211,
weight: 736,
fee: 0,
status: {
confirmed: true,
block_height: 2091086,
block_hash: "00000000340f3667cce7032d084973ca29bdd0d858ec363ed894ad4c8ed09ebc",
block_time: 1630607773
}
},
...
],
GET Address Transactions Mempool addresses
Beschreibung
Get unconfirmed transaction history for the specified address/scripthash. Returns up to 50 transactions (no paging).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/address/tb1qp0we5epypgj4acd2c4au58045ruud2pd6heuee/txs/mempool"
Antwort
[
{
txid: "16cd9bbc6b62313a22d16671fa559aec6bf581df8b5853d37775c84b0fddfa90",
version: 2,
locktime: 0,
vin: [ [Object] ],
vout: [ [Object], [Object] ],
size: 226,
weight: 904,
fee: 6720,
status: { confirmed: false }
}
]
GET Address UTXO addresses
Beschreibung
Get the list of unspent transaction outputs associated with the address/scripthash. Available fields: txid, vout, value, and status (with the status of the funding tx).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/address/tb1q4kgratttzjvkxfmgd95z54qcq7y6hekdm3w56u/utxo"
Antwort
[
{
txid: "c404bc4ba89e9423ff772cb45268ba6fba8b713f809484c1216f1a657aafa088",
vout: 1,
status: {
confirmed: true,
block_height: 2086944,
block_hash: "000000000000039a27007892b0f3ac646afa4eb3ef3d4a4e75e8bdf636b4d006",
block_time: 1630159123
},
value: 1973787
},
...
]
GET Address Validation addresses
Beschreibung
Returns whether an address is valid or not. Available fields: isvalid (boolean), address (string), scriptPubKey (string), isscript (boolean), iswitness (boolean), witness_version (numeric, optional), and witness_program (string, optional).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/validate-address/tb1q4kgratttzjvkxfmgd95z54qcq7y6hekdm3w56u"
Antwort
{
isvalid: true,
address: "tb1q4kgratttzjvkxfmgd95z54qcq7y6hekdm3w56u",
scriptPubKey: "0014ad903ead6b149963276869682a54180789abe6cd",
isscript: false,
iswitness: true,
witness_version: 0,
witness_program: "ad903ead6b149963276869682a54180789abe6cd"
}

Blocks

GET Block blocks
Beschreibung
Returns details about a block.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000009c08dc77c3f224d9f5bbe335a78b996ec1e0701e065537ca81"
Antwort
{
id: "000000000000009c08dc77c3f224d9f5bbe335a78b996ec1e0701e065537ca81",
height: 2091140,
version: 543162372,
timestamp: 1630625150,
tx_count: 2,
size: 575,
weight: 1865,
merkle_root: "5d10d8d158bb8eb217d01fecc435bd10eda028043a913dc2bfe0ccf536a51cc9",
previousblockhash: "0000000000000073f95d1fc0a93d449f82a754410c635e46264ec6c7c4d5741e",
mediantime: 1630621997,
nonce: 1600805744,
bits: 436273151,
difficulty: 16777216
}
GET Block Header blocks
Beschreibung
Returns the hex-encoded block header.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000009c08dc77c3f224d9f5bbe335a78b996ec1e0701e065537ca81/header"
Antwort
040060201e74d5c4c7c64e26465e630c4154a7829f443da9c01f5df97300000000000000c91ca536f5cce0bfc23d913a0428a0ed10bd35c4ec1fd017b28ebb58d1d8105d7e5d3161ffff001a705b6a5f
GET Block Height blocks
Beschreibung
Returns the hash of the block currently at :height.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block-height/2100100"
Antwort
000000000000001be62f15637e813e1d8ecdf26ee95d1820ef16db9bd8685985
GET Block Timestamp blocks
Beschreibung
Returns the height and the hash of the block closest to the given :timestamp.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/timestamp/1672531200"
Antwort
{
height: 2413838,
hash: "00000000000000082888e2353ea4baaea04d2e0e88f2ee054ad2bbcc1d6a5469",
timestamp: "2022-12-31T23:57:26.000Z"
}
GET Block Raw blocks
Beschreibung
Returns the raw block representation in binary.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000009c08dc77c3f224d9f5bbe335a78b996ec1e0701e065537ca81/raw"
GET Block Status blocks
Beschreibung
Returns the confirmation status of a block. Available fields: in_best_chain (boolean, false for orphaned blocks), next_best (the hash of the next block, only available for blocks in the best chain).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000009c08dc77c3f224d9f5bbe335a78b996ec1e0701e065537ca81/status"
Antwort
{
in_best_chain: true,
height: 2091140,
next_best: "0000000000000064152f2dc1e13bd70811fbcfa9c1660557233668b98b7b1c2b"
}
GET Block Tip Height blocks
Beschreibung
Returns the height of the last block.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/blocks/tip/height"
Antwort
2091168
GET Block Tip Hash blocks
Beschreibung
Returns the hash of the last block.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/blocks/tip/hash"
Antwort
00000000000000a7a5227bb493ffb90d1e63e1c7e8cab2c9a2b98e9f2599a9a9
GET Block Transaction ID blocks
Beschreibung
Returns the transaction at index :index within the specified block.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000004a3ff1faff12c446f711c650454ff8af7f41d1e8b2564dd74b/txid/1"
Antwort
7aede67cd9f48c2f77ca9112c27da2583ea41fbb391652777c44ef21d5b1656e
GET Block Transaction IDs blocks
Beschreibung
Returns a list of all txids in the block.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000004a3ff1faff12c446f711c650454ff8af7f41d1e8b2564dd74b/txids"
Antwort
[
"b5d033f57045b76f2f29df0c2469be0153ecf2514717bccd8d52250b3e7ba781",
"7aede67cd9f48c2f77ca9112c27da2583ea41fbb391652777c44ef21d5b1656e",
"20827f9a8fb5ec5fa55ce5389b1d7520d7961272492dc3424874887daeea21dc"
]
GET Block Transactions blocks
Beschreibung
Returns a list of transactions in the block (up to 25 transactions beginning at start_index). Transactions returned here do not have the status field, since all the transactions share the same block and confirmation status.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/block/000000000000004a3ff1faff12c446f711c650454ff8af7f41d1e8b2564dd74b/txs"
Antwort
[
{
txid: "b5d033f57045b76f2f29df0c2469be0153ecf2514717bccd8d52250b3e7ba781",
version: 2,
locktime: 0,
vin: [],
vout: [],
size: 238,
weight: 844,
fee: 0,
status: {
confirmed: true,
block_height: 2091173,
block_hash: "000000000000004a3ff1faff12c446f711c650454ff8af7f41d1e8b2564dd74b",
block_time: 1630635771
}
},
...
],
GET Blocks blocks
Beschreibung
Returns details on the past 15 blocks with fee and mining details in an extras field. If :startHeight is specified, the past 15 blocks before (and including) :startHeight are returned.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/blocks/2091187"
Antwort
[
{
"id": "00000000000000533f63df886281a9fd74da163e84a21445153ff480e5f57970",
"timestamp": 1630641890,
"height": 2091187,
"version": 545259520,
"bits": 436273151,
"nonce": 309403673,
"difficulty": 16777216,
"merkle_root": "4d6df12a4af11bb928c7b2930e0a4d2c3e268c6dc6a07462943ad1c4b6b96468",
"tx_count": 26,
"size": 8390,
"weight": 22985,
"previousblockhash": "0000000000000079103da7d296e1480295df795b7379e7dffd27743e214b0b32",
"extras": {
"coinbaseRaw": "03b3e81f3a205468697320626c6f636b20776173206d696e65642077697468206120636172626f6e206e6567617469766520706f77657220736f75726365201209687a2009092009020de601d7986a040000",
"medianFee": 1,
"feeRange": [
1,
1,
1,
1,
5,
56,
5053
],
"reward": 10547567,
"totalFees": 781942,
"avgFee": 31277,
"avgFeeRate": 143,
"pool": {
"id": 137,
"name": "Unknown",
"slug": "unknown"
}
}
},
...
]
GET Blocks (Bulk) blocks
Beschreibung

Returns details on the range of blocks between :minHeight and :maxHeight, inclusive, up to 10 blocks. If :maxHeight is not specified, it defaults to the current tip.

To return data for more than 10 blocks, consider becoming an enterprise sponsor.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/blocks-bulk/100000/100000"
Antwort
[
{
"height": 100000,
"hash": "00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e",
"timestamp": 1376123972,
"median_timestamp": 1677396660,
"previous_block_hash": "000000004956cc2edd1a8caa05eacfa3c69f4c490bfc9ace820257834115ab35",
"difficulty": 271.7576739288896,
"header": "0200000035ab154183570282ce9afc0b494c9fc6a3cfea05aa8c1add2ecc56490000000038ba3d78e4500a5a7570dbe61960398add4410d278b21cd9708e6d9743f374d544fc055227f1001c29c1ea3b",
"version": 2,
"bits": 469823783,
"nonce": 1005240617,
"size": 221,
"weight": 884,
"tx_count": 1,
"merkle_root": "d574f343976d8e70d91cb278d21044dd8a396019e6db70755a0a50e4783dba38",
"reward": 5000000000,
"total_fee_amt": 0,
"avg_fee_amt": 0,
"median_fee_amt": 0,
"fee_amt_percentiles": {
"min": 0,
"perc_10": 0,
"perc_25": 0,
"perc_50": 0,
"perc_75": 0,
"perc_90": 0,
"max": 0
},
"avg_fee_rate": 0,
"median_fee_rate": 0,
"fee_rate_percentiles": {
"min": 0,
"perc_10": 0,
"perc_25": 0,
"perc_50": 0,
"perc_75": 0,
"perc_90": 0,
"max": 0
},
"total_inputs": 0,
"total_input_amt": null,
"total_outputs": 1,
"total_output_amt": 0,
"segwit_total_txs": 0,
"segwit_total_size": 0,
"segwit_total_weight": 0,
"avg_tx_size": 0,
"utxoset_change": 1,
"utxoset_size": null,
"coinbase_raw": "03a08601000427f1001c046a510100522cfabe6d6d0000000000000000000068692066726f6d20706f6f6c7365727665726aac1eeeed88",
"coinbase_address": "mtkbaiLiUH3fvGJeSzuN3kUgmJzqinLejJ",
"coinbase_signature": "OP_DUP OP_HASH160 OP_PUSHBYTES_20 912e2b234f941f30b18afbb4fa46171214bf66c8 OP_EQUALVERIFY OP_CHECKSIG",
"coinbase_signature_ascii": " �'ñjQR,ú¾mmhi from poolserverj¬îí�",
"pool_slug": "unknown",
"orphans": []
}
]

Mining

GET Mining Pools mining
Beschreibung
Returns a list of all known mining pools ordered by blocks found over the specified trailing :timePeriod.

Leave :timePeriod unspecified to get all available data, or specify one of the following values: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/pools/3y"
Antwort
{
"pools": [
{
"poolId": 112,
"name": "SBI Crypto",
"link": "https://sbicrypto.com",
"blockCount": 26243,
"rank": 2,
"emptyBlocks": 11272,
"slug": "sbicrypto"
},
{
"poolId": 8,
"name": "Huobi.pool",
"link": "https://www.hpt.com/",
"blockCount": 12134,
"rank": 3,
"emptyBlocks": 6096,
"slug": "huobipool"
},
...
],
"blockCount": 2226180,
"lastEstimatedHashrate": 602244182177430.8
}
GET Mining Pool mining
Beschreibung

Returns details about the mining pool specified by :slug.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/pool/binancepool"
Antwort
{
"pool": {
"id": 105,
"name": "Binance Pool",
"link": "https://pool.binance.com/",
"addresses": [],
"regexes": [
"/Binance/",
"binance"
],
"slug": "binancepool"
},
"blockCount": {
"all": 2,
"24h": 1,
"1w": 1
},
"blockShare": {
"all": 8.984160924290476e-7,
"24h": 0.004524886877828055,
"1w": 0.0005089058524173028
},
"estimatedHashrate": 2617854550633.5283,
"reportedHashrate": null
}
GET Mining Pool Hashrates mining
Beschreibung

Returns average hashrates (and share of total hashrate) of mining pools active in the specified trailing :timePeriod, in descending order of hashrate.

Leave :timePeriod unspecified to get all available data, or specify any of the following time periods: 1m, 3m, 6m, 1y, 2y, 3y.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/hashrate/pools/1y"
Antwort
[
{
"timestamp": 1621814400,
"avgHashrate": 395655036336662.7,
"share": 1,
"poolName": "Unknown"
},
{
"timestamp": 1621814400,
"avgHashrate": 0,
"share": 0,
"poolName": "Binance Pool"
}
]
GET Mining Pool Hashrate mining
Beschreibung
Returns all known hashrate data for the mining pool specified by :slug. Hashrate values are weekly averages.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/pool/kncminer/hashrate"
Antwort
[
{
"timestamp": 1400457600,
"avgHashrate": 23504290056.20675,
"share": 0.21875,
"poolName": "KnCMiner"
},
{
"timestamp": 1401062400,
"avgHashrate": 22880315827.385838,
"share": 0.301661,
"poolName": "KnCMiner"
},
{
"timestamp": 1401667200,
"avgHashrate": 65314000516.18979,
"share": 0.774853,
"poolName": "KnCMiner"
},
...
]
GET Mining Pool Blocks mining
Beschreibung
Returns past 10 blocks mined by the specified mining pool (:slug) before the specified :blockHeight. If no :blockHeight is specified, the mining pool's 10 most recent blocks are returned.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/pool/bitcoincom/blocks/2226000"
Antwort
[
{
"id": "00000000000000ed428cdb70dfdeb0f3927912131cb96e7b1fe274b1bb1181b2",
"timestamp": 1582018014,
"height": 1666150,
"version": 541065216,
"bits": 436312585,
"nonce": 21973352,
"difficulty": 10474471.99230249,
"merkle_root": "541456efe41e5730a563475e0c5e2007ee660f1d86d9778bfc164d73c59fd605",
"tx_count": 382,
"size": 126201,
"weight": 331851,
"previousblockhash": "00000000005a0843cc88b09cf6def15e4dc8fe38ab5cf3ad890f34a2df497004",
"extras": {
"coinbaseRaw": "03666c19706f6f6c2e626974636f696e2e636f6d010000022583010000000000",
"medianFee": 1,
"reward": 39726335,
"totalFees": 663835,
"pool": {
"id": 12
}
}
},
{
"id": "00000000000000af90f51e48cb29fdecc62e9961c5e27aca1a4ae8213aae1954",
"timestamp": 1579793108,
"height": 1663620,
"version": 541065216,
"bits": 436295134,
"nonce": 1762790676,
"difficulty": 12563071.03178775,
"merkle_root": "02d02afea666f08bab5851de541d0570c71a6cd8be358c28952c52d57b7afad4",
"tx_count": 24,
"size": 9562,
"weight": 23848,
"previousblockhash": "000000000000013bbdbc0fef53a5b4b2af02880a6f56f7945de071b71d51123a",
"extras": {
"coinbaseRaw": "03846219706f6f6c2e626974636f696e2e636f6d01000065f224020000000000",
"medianFee": 1,
"reward": 39547121,
"totalFees": 484621,
"pool": {
"id": 12
}
}
},
...
]
GET Hashrate mining
Beschreibung

Returns network-wide hashrate and difficulty figures over the specified trailing :timePeriod:

  • Current (real-time) hashrate
  • Current (real-time) difficulty
  • Historical daily average hashrates
  • Historical difficulty

Valid values for :timePeriod are 1m, 3m, 6m, 1y, 2y, 3y. If no time interval is specified, all available data is returned.

Be sure that INDEXING_BLOCKS_AMOUNT is set properly in your backend config so that enough blocks are indexed to properly serve your request.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/hashrate/3d"
Antwort
{
"hashrates": [
{
"timestamp": 1652745600,
"avgHashrate": 385829751259101.6
},
{
"timestamp": 1652832000,
"avgHashrate": 657984995406460.8
},
{
"timestamp": 1652918400,
"avgHashrate": 510731129917436.6
}
],
"difficulty": [
{
"timestamp": 1652691434,
"difficulty": 26119369.29706616,
"height": 2225402
}
],
"currentHashrate": 781149965464814.4,
"currentDifficulty": 55580658.55098472
}
GET Difficulty Adjustments mining
Beschreibung

Returns the record of difficulty adjustments over the specified trailing :interval:

  • Block timestamp
  • Block height
  • Difficulty
  • Difficulty change

If no time interval is specified, all available data is returned.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/difficulty-adjustments/1m"
Antwort
[
[
1703429523,
2544008,
105074715.9955905,
105075000
],
[
1703426009,
2544005,
1,
0
],
[
1703422944,
2544000,
105074715.9955905,
105075000
],
...
]
GET Reward Stats mining
Beschreibung
Returns block reward and total transactions confirmed for the past :blockCount blocks.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/reward-stats/100"
Antwort
{
"startBlock": 2226086,
"endBlock": 2226185,
"totalReward": "513462793",
"totalFee": "25181593",
"totalTx": "2366"
}
GET Block Fees mining
Beschreibung

Returns average total fees for blocks in the specified :timePeriod, ordered oldest to newest. :timePeriod can be any of the following: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

For 24h and 3d time periods, every block is included and fee amounts are exact (not averages). For the 1w time period, fees may be averages depending on how fast blocks were found around a particular timestamp. For other time periods, fees are averages.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/fees/1w"
Antwort
[
{
"avgHeight": 2224253,
"timestamp": 1652346420,
"avgFees": 211686
},
{
"avgHeight": 2224254,
"timestamp": 1652346850,
"avgFees": 2565952
},
...
]
GET Block Rewards mining
Beschreibung

Returns average block rewards for blocks in the specified :timePeriod, ordered oldest to newest. :timePeriod can be any of the following: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

For 24h and 3d time periods, every block is included and block rewards are exact (not averages). For the 1w time period, block rewards may be averages depending on how fast blocks were found around a particular timestamp. For other time periods, block rewards are averages.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/rewards/1d"
Antwort
[
{
"avgHeight": 12,
"timestamp": 1296689648,
"avgRewards": 5000000000
},
{
"avgHeight": 269,
"timestamp": 1296717674,
"avgRewards": 5000091820
},
...
]
GET Block Feerates mining
Beschreibung
Returns average feerate percentiles for blocks in the specified :timePeriod, ordered oldest to newest. :timePeriod can be any of the following: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

For 24h and 3d time periods, every block is included and percentiles are exact (not averages). For the 1w time period, percentiles may be averages depending on how fast blocks were found around a particular timestamp. For other time periods, percentiles are averages.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/fee-rates/1m"
Antwort
[
{
"avgHeight": 2196306,
"timestamp": 1650360168,
"avgFee_0": 1,
"avgFee_10": 1,
"avgFee_25": 1,
"avgFee_50": 1,
"avgFee_75": 2,
"avgFee_90": 28,
"avgFee_100": 2644
},
{
"avgHeight": 2196308,
"timestamp": 1650361209,
"avgFee_0": 1,
"avgFee_10": 1,
"avgFee_25": 1,
"avgFee_50": 4,
"avgFee_75": 12,
"avgFee_90": 65,
"avgFee_100": 102
},
...
]
GET Block Sizes and Weights mining
Beschreibung

Returns average size (bytes) and average weight (weight units) for blocks in the specified :timePeriod, ordered oldest to newest. :timePeriod can be any of the following: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

For 24h and 3d time periods, every block is included and figures are exact (not averages). For the 1w time period, figures may be averages depending on how fast blocks were found around a particular timestamp. For other time periods, figures are averages.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/sizes-weights/3y"
Antwort
{
"sizes": [
{
"avgHeight": 1517188,
"timestamp": 1558262730,
"avgSize": 25089
},
{
"avgHeight": 1517275,
"timestamp": 1558290933,
"avgSize": 21679
},
...
],
"weights": [
{
"avgHeight": 1517188,
"timestamp": 1558262730,
"avgWeight": 74921
},
{
"avgHeight": 1517275,
"timestamp": 1558290933,
"avgWeight": 65164
},
...
]
}
GET Block Predictions mining
Beschreibung

Returns average block health in the specified :timePeriod, ordered oldest to newest. :timePeriod can be any of the following: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

For 24h and 3d time periods, every block is included and figures are exact (not averages). For the 1w time period, figures may be averages depending on how fast blocks were found around a particular timestamp. For other time periods, figures are averages.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/predictions/3y"
Antwort
[
[
1687246773,
2429248,
100
],
[
1687285500,
2438380,
100
],
[
1687342820,
2438467,
100
],
[
1687372143,
2438522,
100
],
...
]
GET Block Audit Score mining
Beschreibung
Returns the block audit score for the specified :blockHash. Available fields: hash, matchRate, expectedFees, and expectedWeight.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/audit/score/000000000000025a66f30a181e438b9f65ef33cec3014b7a4ff4c7578289cd6e"
Antwort
{
hash: "000000000000025a66f30a181e438b9f65ef33cec3014b7a4ff4c7578289cd6e",
matchRate: 100,
expectedFees: 579169,
expectedWeight: 12997
}
GET Blocks Audit Scores mining
Beschreibung
Returns blocks audit score for the past 16 blocks. If :startHeight is specified, the past 15 blocks before (and including) :startHeight are returned. Available fields: hash, matchRate, expectedFees, and expectedWeight.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/mining/blocks/audit/scores/2566570"
Antwort
[
{
hash: "00000000000002e7e96e7b5ee04a5fbb3ef9575a9f4a99effb32a8a89d9d2f19",
matchRate: 100,
expectedFees: 964677,
expectedWeight: 24959
},
{
hash: "00000000000003bd3962806d0e06d9982eb2e06aeba912687b2bac3668db32aa",
matchRate: 100,
expectedFees: 631200,
expectedWeight: 15516
},
...
]
GET Block Audit Summary mining
Beschreibung
Returns the block audit summary for the specified :blockHash. Available fields: height, id, timestamp, template, missingTxs, addedTxs, freshTxs, sigopTxs, fullrbfTxs, acceleratedTxs, matchRate, expectedFees, and expectedWeight.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/block/000000000000007cfba94e051326b3546c968a188a7e12e340a78cefc586bfe3/audit-summary"
Antwort
{
height: 2566708,
id: "000000000000007cfba94e051326b3546c968a188a7e12e340a78cefc586bfe3",
timestamp: 1703684826,
template: [
{
txid: "6556caa3c6bff537f04837a6f7182dd7a253f31a46de4f21dec9584720156d35",
fee: 109707,
vsize: 264.75,
value: 456855,
rate: 414.37960339943345,
flags: 9895621445642
},
{
txid: "53b7743b8cfa0108dbcdc7c2f5e661b9d8f56216845a439449d7f9dfc466b147",
fee: 74640,
vsize: 215.5,
value: 19063915,
rate: 348.5338491295938,
flags: 1099528491017
},
...
],
missingTxs: [
"8f2eae756119e43054ce1014a06e81d612113794d8b519e6ff393d7e0023396a",
"012b44b0fc0fddc549a056c85850f03a83446c843504c588cd5829873b30f5a9",
...
],
addedTxs: [],
freshTxs: [
"af36a8b88f6c19f997614dfc8a41395190eaf496a49e8db393dacb770999abd5",
"fdfa272c8fe069573b964ddad605d748d8c737e94dfcd09bddaae0ee0a2445df",
...
],
sigopTxs: [],
fullrbfTxs: [],
acceleratedTxs: [],
matchRate: 86.96,
expectedFees: 1541639,
expectedWeight: 26425
}

Fees

GET Mempool Blocks Fees fees
Beschreibung
Returns current mempool as projected blocks.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/fees/mempool-blocks"
Antwort
[
{
blockSize: 2871,
blockVSize: 2377.5,
nTx: 11,
totalFees: 3499,
medianFee: 1.1799410029498525,
feeRange: [
1.00374531835206,
1.00374531835206,
1.0046860356138707,
1.1799410029498525,
1.183431952662722,
1.3274336283185841,
1.3995037220843674,
5.0271041369472185
]
}
]

Mempool

GET Mempool mempool
Beschreibung
Returns current mempool backlog statistics.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/mempool"
Antwort
{
count: 16,
vsize: 2692,
total_fee: 46318,
fee_histogram: [
[
1.0071429,
2692
]
]
}
GET Mempool Transaction IDs mempool
Beschreibung
Get the full list of txids in the mempool as an array. The order of the txids is arbitrary and does not match bitcoind.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/mempool/txids"
Antwort
[
"af04a3e8b7bd49217165435e2717b6ed977cde9c0f6f2a5813c4c39eb53748af",
"d4c4989617e9af40518f7846f98e98e4a187bc29fb95542c9aa469af159c61e4",
"c4c0630b18e910be0a70ebd5d4897b379168b0f357a6536188a28e38d2cf8b43",
"c6c9c44ca17ff8c1ebfe27978e57277be6098f0fb5129840370c013fe503db24",
...
]
GET Mempool Recent mempool
Beschreibung
Get a list of the last 10 transactions to enter the mempool. Each transaction object contains simplified overview data, with the following fields: txid, fee, vsize, and value.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/mempool/recent"
Antwort
[
{
txid: "1fc5098fe3378828a890fa5144883cdd1411d9cdbb1af365c20e72503b11dc81",
fee: 221,
vsize: 201,
value: 944960
},
...
]
GET Mempool RBF Transactions mempool
Beschreibung
Returns the list of mempool transactions that are part of a RBF chain.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/replacements"
Antwort
[
{
tx: {
txid: "7766e3f008011b776905f96fcad9d4a7b75d1b368d1e77db2901254f1fa8357d",
fee: 9101,
vsize: 317,
value: 147706698,
rate: 28.709779179810724,
rbf: true,
fullRbf: false
},
time: 1703331325,
fullRbf: false,
replaces: [
{
tx: {
txid: "43055f6e5750c6aa0c2214e59e99f367398d96bde935e7666c3e648d249a4e40",
fee: 7000,
vsize: 317,
value: 147708799,
rate: 22.082018927444796,
rbf: true
},
time: 1703331154,
interval: 171,
fullRbf: false,
replaces: []
}
]
},
...
]
GET Mempool Full RBF Transactions mempool
Beschreibung
Returns the list of mempool transactions that are part of a Full-RBF chain.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/fullrbf/replacements"
Antwort
[
{
tx: {
txid: "25e2bfaf0e0821e5cb71f11e460b2f71e1d5a3755015de42544afa5fbad6d443",
fee: 24436,
vsize: 297.75,
value: 273418,
rate: 82.0688497061293,
rbf: false,
fullRbf: true
},
time: 1703409882,
fullRbf: true,
replaces: [
{
tx: {
txid: "07d501e8ad4a25f07f3ced0a6102741720f710765e6fdb2eb966ba0df657997a",
fee: 24138,
vsize: 297.75,
value: 273716,
rate: 81.06801007556675,
rbf: false
},
time: 1703409853,
interval: 29,
fullRbf: true,
replaces: []
}
]
},
...
]

Transactions

GET Children Pay for Parent transactions
Endpunkt

GET /testnet/api/v1/cpfp

Beschreibung
Returns the ancestors and the best descendant fees for a transaction.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/cpfp/txid"
GET Transaction transactions
Beschreibung
Returns details about a transaction. Available fields: txid, version, locktime, size, weight, fee, vin, vout, and status.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d"
Antwort
{
txid: "eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d",
version: 2,
locktime: 2091198,
vin: [],
vout: [],
size: 222,
weight: 561,
fee: 16332,
status: {
confirmed: true,
block_height: 2091199,
block_hash: "000000000000004d36632fda8180ff16855d606e5515aab0750d9d4fe55fe7d6",
block_time: 1630648992
}
}
GET Transaction Hex transactions
Beschreibung
Returns a transaction serialized as hex.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/hex"
Antwort
0200000000010146c398e70cceaf9d8f734e603bc53e4c4c0605ab46cb1b5807a62c90f5aed50d0100000000feffffff023c0fc10c010000001600145033f65b590f2065fe55414213f1d25ab20b6c4f487d1700000000001600144b812d5ef41fc433654d186463d41b458821ff740247304402202438dc18801919baa64eb18f7e925a...
GET Transaction Merkleblock Proof transactions
Beschreibung
Returns a merkle inclusion proof for the transaction using bitcoind's merkleblock format.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/merkleblock-proof"
Antwort
0000602002bf77bbb098f90f149430c314e71ef4e2671ea5e04a2503e0000000000000000406ffb54f2925360aae81bd3199f456928bbe6ae83a877902da9d9ffb08215da0ba3161ffff001a545a850bb80000000906e0c62f68fdf4865a46889e2e12d66f03cc537225d612aa77b08a38936b4d435d73544598d93174314d75e5833...
GET Transaction Merkle Proof transactions
Beschreibung
Returns a merkle inclusion proof for the transaction using Electrum's blockchain.transaction.get_merkle format.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/merkle-proof"
Antwort
{
block_height: 2091199,
merkle: [
"434d6b93388ab077aa12d6257253cc036fd6122e9e88465a86f4fd682fc6e006",
"bd9af28e56cf6731e78ee1503a65d9cc9b15c148daa474e71e085176f48996ac",
"605f6f83423ef3b86623927ef2d9dcb0f8d9e40a8132217c2fa0910b84488ec7",
"10b7ef06ef0756823dbf39dea717be397e7ccb49bbefc5cfc45e6f9d58793baf",
"19183ceae11796a9b1d0893e0561870bbce4d060c9547b1e91ad8b34eb3d5001",
"1b16723739522955422b4286b4d8620d2a704b6997e6bbd809d151b8d8d64611",
"6f8496469b19dd35871684332dfd3fc0205d83d2c58c44ebdae068542bc951f6",
"e0d2733bd7bce4e5690b71bc8f7cedb1edbc49a5ff85c3678ecdec894ea1c023"
],
pos: 1
}
GET Transaction Outspend transactions
Beschreibung
Returns the spending status of a transaction output. Available fields: spent (boolean), txid (optional), vin (optional), and status (optional, the status of the spending tx).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/outspend/0"
Antwort
{
spent: true,
txid: "37e867526abb7cde3f64f86f60b42bee1f989aa8514730ae2e741dd05bbc286b",
vin: 0,
status: {
confirmed: true,
block_height: 2091199,
block_hash: "000000000000004d36632fda8180ff16855d606e5515aab0750d9d4fe55fe7d6",
block_time: 1630648992
}
}
GET Transaction Outspends transactions
Beschreibung
Returns the spending status of all transaction outputs.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/outspends"
Antwort
[
{
spent: true,
txid: "37e867526abb7cde3f64f86f60b42bee1f989aa8514730ae2e741dd05bbc286b",
vin: 0,
status: {
confirmed: true,
block_height: 2091199,
block_hash: "000000000000004d36632fda8180ff16855d606e5515aab0750d9d4fe55fe7d6",
block_time: 1630648992
}
},
{
spent: false
}
]
GET Transaction Raw transactions
Beschreibung
Returns a transaction as binary data.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/raw"
GET Transaction RBF History transactions
Beschreibung
Returns the RBF tree history of a transaction.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/tx/5faaa30530bee55de8cc896bdf48f803c2274a94bffc2842386bec2a8bf7a813/rbf"
Antwort
{
replacements: {
tx: {
txid: "5faaa30530bee55de8cc896bdf48f803c2274a94bffc2842386bec2a8bf7a813",
fee: 9101,
vsize: 318,
value: 148022607,
rate: 28.61949685534591,
rbf: true,
fullRbf: false,
mined: true
},
time: 1703322610,
fullRbf: false,
replaces: [
{
tx: {
txid: "06e69641fa889fe9148669ac2904929004e7140087bedaec8c8e4e05aabded52",
fee: 7000,
vsize: 318,
value: 148024708,
rate: 22.0125786163522,
rbf: true
},
time: 1703322602,
interval: 8,
fullRbf: false,
replaces: []
}
],
mined: true
},
replaces: [
"06e69641fa889fe9148669ac2904929004e7140087bedaec8c8e4e05aabded52"
]
}
GET Transaction Status transactions
Beschreibung
Returns the confirmation status of a transaction. Available fields: confirmed (boolean), block_height (optional), and block_hash (optional).
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/tx/eefbafa4006e77099db059eebe14687965813283e5754d317431d9984554735d/status"
Antwort
{
confirmed: false
}
GET Transaction Times transactions
Beschreibung
Returns the timestamps when a list of unconfirmed transactions was initially observed in the mempool. If a transaction is not found in the mempool or has been mined, the timestamp will be 0.
Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/transaction-times?txId[]=25e7a95ebf10ed192ee91741653d8d970ac88f8e0cd6fb14cc6c7145116d3964&txId[]=1e158327e52acae35de94962e60e53fc70f6b175b0cfc3e2058bed4b895203b4"
Antwort
[1703267563,1703267322]
POST Transaction transactions
Endpunkt
POST /api/tx
Beschreibung
Broadcast a raw transaction to the network. The transaction should be provided as hex in the request body. The txid will be returned on success.
Codebeispiel
curl -X POST -sSLd "0200000001fd5b5fcd1cb066c27cfc9fda5428b9be850b81ac440ea51f1ddba2f987189ac1010000008a4730440220686a40e9d2dbffeab4ca1ff66341d06a17806767f12a1fc4f55740a7af24c6b5022049dd3c9a85ac6c51fecd5f4baff7782a518781bbdd94453c8383755e24ba755c01410436d554adf4a3eb03a317c77aa4020a7bba62999df633bba0ea8f83f48b9e01b0861d3b3c796840f982ee6b14c3c4b7ad04fcfcc3774f81bff9aaf52a15751fedfdffffff02416c00000000000017a914bc791b2afdfe1e1b5650864a9297b20d74c61f4787d71d0000000000001976a9140a59837ccd4df25adc31cdad39be6a8d97557ed688ac00000000" "https://mempool.emzy.de/testnet/api/tx"

Lightning

GET Network Stats lightning
Beschreibung

Returns network-wide stats such as total number of channels and nodes, total capacity, and average/median fee figures.

Pass one of the following for :interval: latest, 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/statistics/latest"
Antwort
{
"latest": {
"id": 13,
"added": "2022-08-30T00:00:00.000Z",
"channel_count": 5101,
"node_count": 1806,
"total_capacity": 43341092977,
"tor_nodes": 288,
"clearnet_nodes": 736,
"unannounced_nodes": 656,
"avg_capacity": 8496588,
"avg_fee_rate": 354,
"avg_base_fee_mtokens": 1183,
"med_capacity": 1148313,
"med_fee_rate": 1,
"med_base_fee_mtokens": 1000,
"clearnet_tor_nodes": 126
}
}
GET Nodes/Channels lightning
Beschreibung

Returns Lightning nodes and channels that match a full-text, case-insensitive search :query across node aliases, node pubkeys, channel IDs, and short channel IDs.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/search?searchText=lnd"
Antwort
{
"nodes": [
{
"public_key": "02be8f360e57600486b93dd33ea0872a4e14a259924ba4084f27d693a77d151158",
"alias": "lndus1.dev.zaphq.io",
"capacity": 762968876,
"channels": 27
},
{
"public_key": "028c3640c57ffe47eb41db8225968833c5032f297aeba98672d6f7037090d59e3f",
"alias": "lndus0.next.zaphq.io",
"capacity": 641040063,
"channels": 26
}
],
"channels": []
}
GET Nodes in Country lightning
Beschreibung

Returns a list of Lightning nodes running on clearnet in the requested :country, where :country is an ISO Alpha-2 country code.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/country/ch"
Antwort
{
"country": {
"de": "Schweiz",
"en": "Switzerland",
"es": "Suiza",
"fr": "Suisse",
"ja": "スイス連邦",
"pt-BR": "Suíça",
"ru": "Швейцария",
"zh-CN": "瑞士"
},
"nodes": [
{
"public_key": "0200a7f20e51049363cb7f2a0865fe072464d469dca0ac34c954bb3d4b552b6e95",
"capacity": 94802991,
"channels": 15,
"alias": "looptest",
"first_seen": 1601298108,
"updated_at": 1661857089,
"city": {
"de": "Thun",
"en": "Thun",
"es": "Thun",
"fr": "Thoune",
"ja": "トゥーン",
"pt-BR": "Tune",
"ru": "Тун",
"zh-CN": "图恩"
},
"country": {
"de": "Schweiz",
"en": "Switzerland",
"es": "Suiza",
"fr": "Suisse",
"ja": "スイス連邦",
"pt-BR": "Suíça",
"ru": "Швейцария",
"zh-CN": "瑞士"
},
"iso_code": "CH",
"subdivision": {
"de": "Bern",
"en": "Bern",
"fr": "Berne"
}
},
...
]
}
GET Node Stats Per Country lightning
Beschreibung

Returns aggregate capacity and number of clearnet nodes per country. Capacity figures are in satoshis.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/countries"
Antwort
[
{
"name": {
"de": "Vereinigte Staaten",
"en": "United States",
"es": "Estados Unidos",
"fr": "États Unis",
"ja": "アメリカ",
"pt-BR": "EUA",
"ru": "США",
"zh-CN": "美国"
},
"iso": "US",
"count": 304,
"share": 37.95,
"capacity": "23906225936"
},
{
"name": {
"de": "Deutschland",
"en": "Germany",
"es": "Alemania",
"fr": "Allemagne",
"ja": "ドイツ連邦共和国",
"pt-BR": "Alemanha",
"ru": "Германия",
"zh-CN": "德国"
},
"iso": "DE",
"count": 85,
"share": 10.61,
"capacity": "1878052329"
},
...
]
GET ISP Nodes lightning
Beschreibung

Returns a list of nodes hosted by a specified :isp, where :isp is an ISP's ASN.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/isp/16509"
Antwort
{
"isp": "Amazon.com",
"nodes": [
{
"public_key": "03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134",
"capacity": 2041664924,
"channels": 70,
"alias": "endurance",
"first_seen": 1566809576,
"updated_at": 1660926529,
"city": null,
"country": {
"de": "Vereinigte Staaten",
"en": "United States",
"es": "Estados Unidos",
"fr": "États Unis",
"ja": "アメリカ",
"pt-BR": "EUA",
"ru": "США",
"zh-CN": "美国"
},
"iso_code": "US",
"subdivision": null
},
...
]
}
GET Node Stats Per ISP lightning
Beschreibung

Returns aggregate capacity, number of nodes, and number of channels per ISP. Capacity figures are in satoshis.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/isp-ranking"
Antwort
{
"clearnetCapacity": 21714967205,
"torCapacity": 1183591190,
"unknownCapacity": 965032372,
"ispRanking": [
[
"14080", //ASN
"Telmex Colombia S.A.", //ISP Name
220063321, //aggregate capacity, in sats
98, //total number of channels
1 //number of nodes
],
[
"16509,14618",
"Amazon.com",
5590657952,
445,
41
],
...
]
}
GET Top 100 Nodes lightning
Beschreibung

Returns two lists of the top 100 nodes: one ordered by liquidity (aggregate channel capacity) and the other ordered by connectivity (number of open channels).

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/rankings"
Antwort
{
"topByCapacity": [
{
"publicKey": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"alias": "aranguren.org",
"capacity": 17155095532
},
{
"publicKey": "0225ff2ae6a3d9722b625072503c2f64f6eddb78d739379d2ee55a16b3b0ed0a17",
"alias": "STRANGEIRON",
"capacity": 7038263480
},
...
],
"topByChannels": [
{
"publicKey": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"alias": "aranguren.org",
"channels": 489
},
{
"publicKey": "030425d8babe3ab6dfc065e69dd8b10ce6738c86ea7d634324c913e21620fa5eaf",
"alias": "MTest441",
"channels": 258
},
...
]
}
GET Top 100 Nodes by Liquidity lightning
Beschreibung

Returns a list of the top 100 nodes by liquidity (aggregate channel capacity).

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/rankings/liquidity"
Antwort
[
{
"publicKey": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"alias": "aranguren.org",
"capacity": 17155095532,
"channels": 489,
"firstSeen": 1521457251,
"updatedAt": 1662035238,
"city": {
"de": "Melbourne",
"en": "Melbourne",
"es": "Melbourne",
"fr": "Melbourne",
"ja": "メルボルン",
"pt-BR": "Melbourne",
"ru": "Мельбурн",
"zh-CN": "墨尔本"
},
"country": {
"de": "Australien",
"en": "Australia",
"es": "Australia",
"fr": "Australie",
"ja": "オーストラリア",
"pt-BR": "Austrália",
"ru": "Австралия",
"zh-CN": "澳大利亚"
}
},
{
"publicKey": "0225ff2ae6a3d9722b625072503c2f64f6eddb78d739379d2ee55a16b3b0ed0a17",
"alias": "STRANGEIRON",
"capacity": 7038263480,
"channels": 95,
"firstSeen": 1651725065,
"updatedAt": 1661958465,
"city": {
"de": "Melbourne",
"en": "Melbourne",
"es": "Melbourne",
"fr": "Melbourne",
"ja": "メルボルン",
"pt-BR": "Melbourne",
"ru": "Мельбурн",
"zh-CN": "墨尔本"
},
"country": {
"de": "Australien",
"en": "Australia",
"es": "Australia",
"fr": "Australie",
"ja": "オーストラリア",
"pt-BR": "Austrália",
"ru": "Австралия",
"zh-CN": "澳大利亚"
}
},
...
]
GET Top 100 Nodes by Connectivity lightning
Beschreibung

Returns a list of the top 100 nodes by connectivity (number of open channels).

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/rankings/connectivity"
Antwort
[
{
"publicKey": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"alias": "aranguren.org",
"channels": 489,
"capacity": 17155095532,
"firstSeen": 1521457251,
"updatedAt": 1662035238,
"city": {
"de": "Melbourne",
"en": "Melbourne",
"es": "Melbourne",
"fr": "Melbourne",
"ja": "メルボルン",
"pt-BR": "Melbourne",
"ru": "Мельбурн",
"zh-CN": "墨尔本"
},
"country": {
"de": "Australien",
"en": "Australia",
"es": "Australia",
"fr": "Australie",
"ja": "オーストラリア",
"pt-BR": "Austrália",
"ru": "Австралия",
"zh-CN": "澳大利亚"
}
},
{
"publicKey": "030425d8babe3ab6dfc065e69dd8b10ce6738c86ea7d634324c913e21620fa5eaf",
"alias": "MTest441",
"channels": 258,
"capacity": 4113430492,
"firstSeen": 1640955758,
"updatedAt": 1662035216,
"city": null,
"country": null
},
{
"publicKey": "0270685ca81a8e4d4d01beec5781f4cc924684072ae52c507f8ebe9daf0caaab7b",
"alias": "0270685ca81a8e4d4d01",
"channels": 164,
"capacity": 638119030,
"firstSeen": 1535613050,
"updatedAt": 1662034882,
"city": {
"de": "Clifton",
"en": "Clifton",
"ja": "クリフトン",
"pt-BR": "Clifton",
"ru": "Клифтон",
"zh-CN": "克利夫頓"
},
"country": {
"de": "Vereinigte Staaten",
"en": "United States",
"es": "Estados Unidos",
"fr": "États Unis",
"ja": "アメリカ",
"pt-BR": "EUA",
"ru": "США",
"zh-CN": "美国"
}
},
...
]
GET Top 100 Oldest Nodes lightning
Beschreibung

Returns a list of the top 100 oldest nodes.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/rankings/age"
Antwort
[
{
"publicKey": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"alias": "aranguren.org",
"channels": 489,
"capacity": 17155095532,
"firstSeen": 1521457251,
"updatedAt": 1662035238,
"city": {
"de": "Melbourne",
"en": "Melbourne",
"es": "Melbourne",
"fr": "Melbourne",
"ja": "メルボルン",
"pt-BR": "Melbourne",
"ru": "Мельбурн",
"zh-CN": "墨尔本"
},
"country": {
"de": "Australien",
"en": "Australia",
"es": "Australia",
"fr": "Australie",
"ja": "オーストラリア",
"pt-BR": "Austrália",
"ru": "Австралия",
"zh-CN": "澳大利亚"
}
},
{
"publicKey": "0277622bf4c497475960bf91bd3c673a4cb4e9b589cebfde9700c197b3989cc1b8",
"alias": "CoinGate",
"channels": 11,
"capacity": 91768515,
"firstSeen": 1525964963,
"updatedAt": 1661991683,
"city": {
"de": "Frankfurt am Main",
"en": "Frankfurt am Main",
"es": "Francfort",
"fr": "Francfort-sur-le-Main",
"ja": "フランクフルト・アム・マイン",
"pt-BR": "Frankfurt am Main",
"ru": "Франкфурт",
"zh-CN": "法兰克福"
},
"country": {
"de": "Deutschland",
"en": "Germany",
"es": "Alemania",
"fr": "Allemagne",
"ja": "ドイツ連邦共和国",
"pt-BR": "Alemanha",
"ru": "Германия",
"zh-CN": "德国"
}
},
...
]
GET Node Stats lightning
Beschreibung

Returns details about a node with the given :pubKey.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/03f060953bef5b777dc77e44afa3859d022fc1a77c55138deb232ad7255e869c00"
Antwort
{
"public_key": "03f060953bef5b777dc77e44afa3859d022fc1a77c55138deb232ad7255e869c00",
"alias": "Boltz",
"first_seen": 1551006126,
"updated_at": 1662033208,
"color": "#ff9800",
"sockets": "35.237.24.136:9735,idz7qlezif6hgmjkpmuelnsssyxea2lwan562a5gla7jmlxsl5cb2cad.onion:9735",
"as_number": 396982,
"city_id": 4589387,
"country_id": 6252001,
"subdivision_id": 4597040,
"longitude": -79.9746,
"latitude": 32.8608,
"iso_code": "US",
"as_organization": "Google Cloud",
"city": {
"en": "North Charleston",
"ja": "ノースチャールストン",
"pt-BR": "North Charleston",
"ru": "Норт-Чарлстон",
"zh-CN": "北查尔斯顿"
},
"country": {
"de": "Vereinigte Staaten",
"en": "United States",
"es": "Estados Unidos",
"fr": "États Unis",
"ja": "アメリカ",
"pt-BR": "EUA",
"ru": "США",
"zh-CN": "美国"
},
"subdivision": {
"en": "South Carolina",
"es": "Carolina del Sur",
"fr": "Caroline du Sud",
"ja": "サウスカロライナ州",
"pt-BR": "Carolina do Sul",
"ru": "Южная Каролина",
"zh-CN": "南卡罗来纳州"
},
"active_channel_count": 46,
"capacity": "111724126",
"opened_channel_count": 165,
"closed_channel_count": 1
}
GET Historical Node Stats lightning
Beschreibung

Returns historical stats for a node with the given :pubKey.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/nodes/0225ff2ae6a3d9722b625072503c2f64f6eddb78d739379d2ee55a16b3b0ed0a17/statistics"
Antwort
[
{
"added": 1662422400,
"capacity": 7038263480,
"channels": 95
},
{
"added": 1662336000,
"capacity": 7038263480,
"channels": 95
},
{
"added": 1662249600,
"capacity": 7038263480,
"channels": 95
},
...
]
GET Channel lightning
Beschreibung

Returns info about a Lightning channel with the given :channelId.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/channels/2478509215728271360"
Antwort
{
"id": "2478509215728271360",
"short_id": "2254191x4x0",
"capacity": 16777215,
"transaction_id": "6b711b07b019d73ad432f401c01ac6ea253fbe2778388e5a686b5777678556c7",
"transaction_vout": 0,
"closing_transaction_id": null,
"closing_reason": null,
"updated_at": "2022-08-31T08:30:42.000Z",
"created": "2022-06-05T16:26:31.000Z",
"status": 1,
"node_left": {
"alias": "scarce-city-testnet",
"public_key": "0304fa1da67d441b382e3b2142a1980840276d89b6477812da8d26487b5ffa938c",
"channels": 15,
"capacity": 104876207,
"base_fee_mtokens": 1000,
"cltv_delta": 0,
"fee_rate": 1,
"is_disabled": 0,
"max_htlc_mtokens": 16777215000,
"min_htlc_mtokens": 1000,
"updated_at": "2022-08-31T08:30:42.000Z",
"longitude": -123.1236,
"latitude": 49.2526
},
"node_right": {
"alias": "STRANGEIRON",
"public_key": "0225ff2ae6a3d9722b625072503c2f64f6eddb78d739379d2ee55a16b3b0ed0a17",
"channels": 95,
"capacity": 7038263480,
"base_fee_mtokens": 0,
"cltv_delta": 0,
"fee_rate": 10,
"is_disabled": 0,
"max_htlc_mtokens": 16609443000,
"min_htlc_mtokens": 1,
"updated_at": "2022-08-27T20:22:06.000Z",
"longitude": 144.9669,
"latitude": -37.8159
}
}
GET Channels from TXID lightning
Beschreibung

Returns channels that correspond to the given :txid (multiple transaction IDs can be specified).

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/channels/txids?txId[]=6b711b07b019d73ad432f401c01ac6ea253fbe2778388e5a686b5777678556c7&txId[]=%{2}"
Antwort
[
{
"inputs": {},
"outputs": {
"0": {
"id": "2478509215728271360",
"short_id": "2254191x4x0",
"capacity": 16777215,
"transaction_id": "6b711b07b019d73ad432f401c01ac6ea253fbe2778388e5a686b5777678556c7",
"transaction_vout": 0,
"closing_transaction_id": null,
"closing_reason": null,
"updated_at": "2022-08-31T08:30:42.000Z",
"created": "2022-06-05T16:26:31.000Z",
"status": 1,
"node_left": {
"alias": "scarce-city-testnet",
"public_key": "0304fa1da67d441b382e3b2142a1980840276d89b6477812da8d26487b5ffa938c",
"base_fee_mtokens": 1000,
"cltv_delta": 0,
"fee_rate": 1,
"is_disabled": 0,
"max_htlc_mtokens": 16777215000,
"min_htlc_mtokens": 1000,
"updated_at": "2022-08-31T08:30:42.000Z"
},
"node_right": {
"alias": "STRANGEIRON",
"public_key": "0225ff2ae6a3d9722b625072503c2f64f6eddb78d739379d2ee55a16b3b0ed0a17",
"base_fee_mtokens": 0,
"cltv_delta": 0,
"fee_rate": 10,
"is_disabled": 0,
"max_htlc_mtokens": 16609443000,
"min_htlc_mtokens": 1,
"updated_at": "2022-08-27T20:22:06.000Z"
}
}
}
}
]
GET Channels from Node Pubkey lightning
Beschreibung

Returns a list of a node's channels given its :pubKey. Ten channels are returned at a time. Use :index for paging. :channelStatus can be open, active, or closed.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/channels?public_key=0200202c1f23899d03bf3f37c87d348e6847bbd91e407df91a713c7dcf3442738b&status=open"
Antwort
[
{
"status": 1,
"closing_reason": null,
"closing_date": null,
"capacity": 8000000,
"short_id": "2223130x18x0",
"id": "2444357285058838528",
"fee_rate": 10,
"node": {
"alias": "Gilgamesh Lightning Testnet",
"public_key": "034997a34858a25dc453a722efc1545d8c7749cbd4587a8d2ef149d257babd8357",
"channels": 121,
"capacity": "512199932"
}
},
{
"status": 0,
"closing_reason": null,
"closing_date": null,
"capacity": 1000000,
"short_id": "2223130x19x0",
"id": "2444357285058904064",
"fee_rate": 0,
"node": {
"alias": "routing.testnet.lnmarkets.com",
"public_key": "03bae2db4b57738c1ec1ffa1c5e5a4423968cc592b3b39cddf7d495e72919d6431",
"channels": 22,
"capacity": "246940161"
}
},
...
]
GET Channel Geodata lightning
Beschreibung

Returns a list of channels with corresponding node geodata.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/channels-geo"
Antwort
[
[
"038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
"aranguren.org",
144.9669,
-37.8159,
"028c3640c57ffe47eb41db8225968833c5032f297aeba98672d6f7037090d59e3f",
"lndus0.next.zaphq.io",
-79.9746,
32.8608
],
[
"02be8f360e57600486b93dd33ea0872a4e14a259924ba4084f27d693a77d151158",
"lndus1.dev.zaphq.io",
-79.9746,
32.8608,
"0273ec4a4c80e767aca1477592649ad6e709ad31e7435668043a9dceccb3020f35",
"lndwr1.dev.zaphq.io",
-79.9746,
32.8608
],
...
]
GET Channel Geodata for Node lightning
Beschreibung

Returns a list of channels with corresponding geodata for a node with the given :pubKey.

Codebeispiel
curl -sSL "https://mempool.emzy.de/testnet/api/v1/lightning/channels-geo/0273ec4a4c80e767aca1477592649ad6e709ad31e7435668043a9dceccb3020f35"
Antwort
[
[
"039b1717db1193eb332d3c0bfdcce90a6aab60efa478b60963d3b406a8fc45134a",
"testnet.demo.btcpayserver.org",
-79.3503,
43.7806,
"0273ec4a4c80e767aca1477592649ad6e709ad31e7435668043a9dceccb3020f35",
"lndwr1.dev.zaphq.io",
-79.9746,
32.8608
],
[
"0273ec4a4c80e767aca1477592649ad6e709ad31e7435668043a9dceccb3020f35",
"lndwr1.dev.zaphq.io",
-79.9746,
32.8608,
"02c6fbedc6ca81d4db5883f1d01481c8187d5f85075729a658288a6d507f770ada",
"HAPPYTOLL",
-97.822,
37.751
],
...
]