Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CAIPs/caip-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ The Asset Type is a string designed to uniquely identify the types of assets in
The `asset_type` is a case-sensitive string in the form

```
asset_type: chain_id + "/" + asset_namespace + ":" + asset_reference
asset_type: chain_id + "/" + asset_namespace + ":" + asset_reference + "#" + block_number_tag
chain_id: Blockchain ID Specification cf. CAIP2
asset_namespace: [-a-z0-9]{3,8}
asset_reference: [-a-zA-Z0-9]{1,64}
block_number_tag: [0-9]{1,78}|latest
```

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

The following secondary goals can easily be achieved:

Expand Down Expand Up @@ -111,6 +113,9 @@ eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d

# CryptoKitties Collectible ID
eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/771769

# CryptoKitties Collectible ID at block number 15051263
eip155:1/erc721:0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/771769#15051263
```

## Copyright
Expand Down