Closed chunteng-web3 closed 9 months ago
Hi @chunteng-web3 with regards to the API, can you set CHAINHOOK_AUTO_PREDICATE_REGISTRATION
to true so it registers the predicate into Ordhook? Otherwise the API will not receive inscriptions from it and won't be able to display them on endpoint responses. Make sure to configure all your node info correctly in the API's .env, too, so they can communicate with each other.
Closing for now -- please reopen if the issue persists after trying the above.
I have the same issue -- running on mainnet and CHAINHOOK_AUTO_PREDICATE_REGISTRATION=true / ORDHOOK_AUTO_PREDICATE_REGISTRATION=true (v3.1.0-beta.1)
Hi there! I have been working on setting up a complete
ordinals-api
endpoint with a fully syncedbitcoind
andordhook
on testnet. Here are my configurations:bitcoin.conf
Ordhook.toml
and
.env
forordinals-api
At the moment, I've met two issues:
ordhook scan inscription b25dfaeea88930616332bc97b9bde3bbfcfbe62e35e763a07cc4706a2be1ed17i0 --testnet
, it showswhile on https://testnet.unisat.io/inscription/b25dfaeea88930616332bc97b9bde3bbfcfbe62e35e763a07cc4706a2be1ed17i0 the inscription number is #736652. I don't know if this is concerning but it should be fine if we use Hiro's
ordinals-api
exclusively.npm start
in theordinals-api
(and.env
mentioned above) returns the following after I triedcurl http://localhost:3000/ordinals/v1/inscriptions
:{"level":"info","time":"2024-01-10T14:31:25.987Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Initializing in default run mode..."} {"level":"info","time":"2024-01-10T14:31:26.042Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Initializing background services..."} {"level":"info","time":"2024-01-10T14:31:26.506Z","pid":2406848,"hostname":"IP-HIDDEN","name":"chainhook-client","msg":"ChainhookEventObserver does not have predicates to register"} {"level":"info","time":"2024-01-10T14:31:26.509Z","pid":2406848,"hostname":"IP-HIDDEN","name":"chainhook-client","msg":"Server listening at http://0.0.0.0:3099"} {"level":"info","time":"2024-01-10T14:31:26.529Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Server listening at http://0.0.0.0:3001"} {"level":"info","time":"2024-01-10T14:31:26.757Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Server listening at http://0.0.0.0:3000"} {"level":"info","time":"2024-01-10T14:31:26.760Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Server listening at http://0.0.0.0:9153"} {"level":"info","time":"2024-01-10T14:31:26.529Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"Initializing API service..."} {"level":"info","time":"2024-01-10T14:31:26.760Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","msg":"App initialized"} {"level":"info","time":"2024-01-10T14:32:01.567Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","reqId":"req-1","req":{"method":"GET","url":"/ordinals/v1/inscriptions","hostname":"localhost:3000","remoteAddress":"127.0.0.1","remotePort":32858},"msg":"incoming request"} {"level":"info","time":"2024-01-10T14:32:01.599Z","pid":2406848,"hostname":"IP-HIDDEN","name":"api","reqId":"req-1","res":{"statusCode":200},"responseTime":29.878253996372223,"msg":"request completed"}
{"limit":20,"offset":0,"total":0,"results":[]}