Open jeff-upbit opened 3 weeks ago
Hi jeff-upbit! I'm one of the many poor souls that tries to get this working and from my understanding of ordhook / ordinals api, your ordhook might not be accepting connections yet. Is the local chain state ready? Are you still fetching data from your bitcoin node? Did your ordinals api get registered as one of the ordhook observers? You can check the current observer list via: (GET /v1/observers/).
Hi @4ker-dep
Jun 25 02:07:15.546 WARN unable to prepare query
SELECT inscription_id, inscription_number, ordinal_number, block_height, tx_index, tick, address, avail_balance, trans_balance, operation
FROM ledger
WHERE ordinal_number = ? AND operation = 'transfer'
AND NOT EXISTS (
SELECT 1 FROM ledger WHERE ordinal_number = ? AND operation = 'transfer_send'
)
LIMIT 1
: no such table: ledger
{"level":"error","time":"2024-06-24T06:11:09.667Z","pid":3567685,"hostname":"server-03","name":"chainhook-client","err":{"type":"Error","message":"connect ECONNREFUSED 127.0.0.1:20456","stack":"Error: connect ECONNREFUSED 127.0.0.1:20456\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)","errno":-111,"code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":20456},"msg":"Chainhook node not available, retrying..."
And it appears that ordhook is not running the rest api server.
telnet 127.0.0.1 20456
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Thank you!
hi @jeff-upbit apologies for the late reply... what @4ker-dep mentions is correct: ordhook does not open the HTTP server for predicate registration until it's caught up with bitcoind.
However, the no such table: ledger
error might be an underlying issue that still needs fixing. I will look into this
Possible duplicate of #324
Ordhook.toml
Ordhook Run Command
ordinals-api .env
When executing ordinals-api, below errors occurred
Are there wrong setting values?