Skip to content

Potential Incorrect Information in Solana CAIP-10 #60

@0xRAG

Description

@0xRAG

Hello 👋

I'm bringing up what I believe is a discrepancy between Solana CAIP-2 and Solana CAIP-10. Specifically, the Chain IDs do not match up, and I believe CAIP-2 has the correct values and CAIP-10 does not.

According to the Chain ID Resolution Method in CAIP-2:

To resolve a blockchain reference for the Solana namespace, make a JSON-RPC request to the RPC Endpoints of a blockchain node with method getGenesisHash, for example:
// Request
{
"id": 1,
"jsonrpc": "2.0",
"method": "getGenesisHash"
}
// Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"
}

And in fact, executing this resolution method on the Solana Mainnet RPC endpoint:

curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getGenesisHash"
}
'

yields this result

{"jsonrpc":"2.0","result":"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d","id":1}

So the Chain ID for Solana Mainnet is 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d, as stated in CAIP-2, and the Chain ID stated in CAIP-10 is wrong. This is reproducible with the stated Chain ID for Solana Devnet.

Please let me know if I'm missing something, otherwise I'd be happy to open a Pull Request to correct this. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions