-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAIP-19: Add block number tag #119
base: main
Are you sure you want to change the base?
Conversation
Do we want to be HTTP compatible (e.g., can be used by an HTTP gateway with translated HTTP URL)? If so, I would suggest using a character other than "#" as "#" will be treated as a hashtag in HTTP. |
not sure if I understand this. Wouldn't slashes and colons also interfere? I understand that if you wanted to use CAIP19 as an ID in an URL you'd be running into trouble. Actually, I've also called this out in an issue but there is someone missing who is making the problematic abundantly clear IMO: #81 |
The issue with hashtag For slashes and colons, I think they are fine as long as they are passed to the server (e.g., https://web3q.io/vitalikca.eth:4/ works for ERC-4804-translated URL). |
Great point, but then I think the block number tag should come after the chainId and it'll break existing CAIP-19 |
Have ever tried a query with blockNumber attribute? This may become
|
great suggestion, feel free to submit this directly as a PR superseeding/updating mine. I'll be a week on Holiday so I won't make the change sooon |
See discussions in ChainAgnostic#119
See #125 |
+ "#" + block_number_tag
section is optional. How would I do that in ABNF?Survey
Did a survey on which chains use ascending block number heights. All that I checked use the concept except for Hedera
ethereum: https://etherscan.io/block/15051057
bitcoin: https://blockchair.com/bitcoin/block/743020
cosmos: https://www.mintscan.io/cosmos/blocks/11082723
litecoin: https://blockchair.com/litecoin/block/2289502
lisk: https://legacy-explorer.lisk.com/block/11289477821881538126
eos: https://eosauthority.com/block/254866414?network=eos
polkadot: https://explorer.polkascan.io/polkadot/block/10964158
filecoin: https://explorer.bitquery.io/filecoin/height/1943190
handshake: https://e.hnsfans.com/block/126736
tezos: https://tzstats.com/2494326
stellar: https://stellarchain.io/ledger/41553526
solana: https://explorer.solana.com/block/139663191
hedera: doesn't use block tags