Solana-rpc using in icp

Can we support solana-rpc on icp
solana-rpc-client = “2.0.0”

Getting error


    Updating crates.io index
error: failed to select a version for the requirement `solana_rbpf = "=0.8.1"`
candidate versions found which didn't match: 0.8.5, 0.8.4, 0.8.3, ...
location searched: crates.io index
required by package `solana-program-runtime v2.0.0`
    ... which satisfies dependency `solana-program-runtime = "=2.0.0"` of package `solana-vote-program v2.0.0`
    ... which satisfies dependency `solana-vote-program = "=2.0.0"` of package `solana-rpc-client v2.0.0`
    ... which satisfies dependency `solana-rpc-client = "^2.0.0"` of package `sign_backend v0.1.0 (/Users/atrey/Desktop/wasserstoff/ICP-BRIDGE/src/sign_backend)```

This won’t work directly since you’d need to use the HTTPS outcalls API of ICP under the hood.

Here’s an early version of a Solana RPC canister under development: GitHub - mfactory-lab/ic-solana: (WIP) Connects the Internet Computer (IC) with the Solana blockchain, offering tools and examples for interaction between IC canisters and Solana programs, facilitating the creation of cross-chain applications..

You could use it directly or use it as an inspiration.
A further example of ICP canisters talking to Solana is GitHub - weichain/galactic-bridge-icp.

4 Likes