Skip to content

Commit de9780d

Browse files
authored
CAIP-19: Add block number tag in query
See discussions in ChainAgnostic#119
1 parent 6beec4d commit de9780d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CAIPs/caip-19.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ The Asset Type is a string designed to uniquely identify the types of assets in
3131
The `asset_type` is a case-sensitive string in the form
3232

3333
```
34-
asset_type: chain_id + "/" + asset_namespace + ":" + asset_reference
34+
asset_type: chain_id + "/" + asset_namespace + ":" + asset_reference + "?" + query
3535
chain_id: Blockchain ID Specification cf. CAIP2
3636
asset_namespace: [-a-z0-9]{3,8}
3737
asset_reference: [-a-zA-Z0-9]{1,64}
38+
query: ("block_number" | "n") "=" block_number
39+
block_number: [0-9]{1,78}|"latest"
3840
```
3941

4042
## Specification of Asset ID
@@ -66,6 +68,7 @@ The goals of the general asset type and asset ID format is:
6668
- To some degree human-readable and helps for basic debugging
6769
- Restricted in a way that it can be stored on-chain
6870
- Character set basic enough to display in hardware wallets as part of a transaction content
71+
- Idempotency and ability to cache the requests to the resource resolvers
6972

7073
The following secondary goals can easily be achieved:
7174

@@ -111,6 +114,9 @@ eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d
111114
112115
# CryptoKitties Collectible ID
113116
eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/771769
117+
118+
# CryptoKitties Collectible ID at block number 15051263
119+
eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/771769?block_number=15051263
114120
```
115121

116122
## Copyright

0 commit comments

Comments
 (0)