Esploratore Ordinale

The ord binary includes a block explorer. We host an instance of the block explorer on mainnet at ordinals.com, on signet at signet.ordinals.com, and on testnet at testnet.ordinals.com. As of version 0.16.0 the wallet needs ord server running in the background. This is analogous to how bitcoin-cli needs bitcoind running in the background.

Esecuzione Dell'Esploratore

Il server può essere eseguito localmente con:

ord server

Per specificare una porta aggiungere --http-port flag:

ord server --http-port 8080

The JSON-API endpoints are enabled by default, to disable them add the --disable-json-api flag (see here for more info):

ord server --disable-json-api

Ricerca

La casella di ricerca accetta una varietà di rappresentazioni di oggetti.

Blocchi

I blocchi possono essere ricercati per hash, ad esempio il blocco genesis:

000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

Transazioni

Le transazioni possono essere ricercate per hash, ad esempio la transazione coinbase del blocco genesis:

4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b

Uscite

Transaction outputs can be searched by outpoint, for example, the only output of the genesis block coinbase transaction:

4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0

Sats

I satoshi possono essere ricercati per numero intero, la loro posizione all'interno dell'intera offerta di bitcoin:

2099994106992659

Per decimale, il loro blocco e l'offset all'interno di quel blocco:

481824.0

Per grado, il ciclo, i blocchi dall'ultimo halving, i blocchi dall'ultimo aggiustamento della difficoltà e l'offset all'interno del blocco:

1°0′0″0‴

Per nome, la loro rappresentazione in base 26 utilizzando le lettere da "a" a "z":

ahistorical

O per percentile, la percentuale della fornitura di bitcoin che è stata o sarà emessa al momento della loro estrazione:

100%

JSON-API

By default the ord server gives access to endpoints that return JSON instead of HTML if you set the HTTP Accept: application/json header. The structure of these objects closely follows what is shown in the HTML. These endpoints are:

  • /inscription/<INSCRIPTION_ID>
  • /inscriptions
  • /inscriptions/block/<BLOCK_HEIGHT>
  • /inscriptions/block/<BLOCK_HEIGHT>/<PAGE_INDEX>
  • /inscriptions/<FROM>
  • /inscriptions/<FROM>/<N>
  • /output/<OUTPOINT>
  • /sat/<SAT>

Per ottenere un elenco delle ultime 100 iscrizioni è necessario procedere come segue:

curl -s -H "Accept: application/json" 'http://0.0.0.0:80/inscriptions'

Per visualizzare le informazioni su un UTXO, che includono le iscrizioni al suo interno, procedere come segue:

curl -s -H "Accept: application/json" 'http://0.0.0.0:80/output/bc4c30829a9564c0d58e6287195622b53ced54a25711d1b86be7cd3a70ef61ed:0'

Che restituisce:

{
  "value": 10000,
  "script_pubkey": "OP_PUSHNUM_1 OP_PUSHBYTES_32 156cc4878306157720607cdcb4b32afa4cc6853868458d7258b907112e5a434b",
  "address": "bc1pz4kvfpurqc2hwgrq0nwtfve2lfxvdpfcdpzc6ujchyr3ztj6gd9sfr6ayf",
  "transaction": "bc4c30829a9564c0d58e6287195622b53ced54a25711d1b86be7cd3a70ef61ed",
  "sat_ranges": null,
  "inscriptions": [
    "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0"
  ]
}