Lagrange-Labs / lsc-state-verifier

0 stars 2 forks source link

The default example doesn't work #3

Closed Inkvi closed 8 months ago

Inkvi commented 8 months ago

When I run main.go with our custom key, no committee root is printed because api returns an empty result.

curl --location 'https://querylayer.lagrange.dev/blocks/block-data?chain_id=421614&block_number=14483253' --header 'x-api-key: <api-key>' | jq returns

{
  "error": "mongo: no documents in result"
}

I assume that's because the block number is too early (not supported in the new Operator Testnet network) and the default block number needs to be updated.

kashishshah commented 8 months ago

We have updated the working default block number in go-main branch.

You can use this API to check if the block is supported in our new Sepolia Operator Testnet or not:

GetBlockByBlockNumber: curl --location 'https://querylayer.lagrange.dev/blocks/block?chain_id=<CHAIN_ID>&block_number=<BLOCK_NUMBER>' \
--header 'x-api-key: <API_KEY>'
Inkvi commented 8 months ago

Thanks for the update