SOL/BTC feeds,dApp on Solana

New to ICP.

I’m planning to build a dAPP that tracks SOL & BTC and depending on price fluctuations will issue tokens on the Solana.

Any starter CDK,starter kits, tutorials etc?

Any help is much appreciated.TIA.

3 Likes

Hey @w3coder,

for the Solana integration I recommend to look at the Solana Chain Fusion example on ICP Ninja.

You can access this example also directly on GitHub:

For tracking SOL and BTC prices in the backend on a regular basis, you can use the Exchange Rate Canister along with Timers in your backend canister.

So for all 3 parts there are some examples. Please let us know if you have further questions!

I’ve built something on Caffeine. Realised it’s in Motoko.

Tried to deploy in ninja but having issues with dfx.json.

Should I refractor to Rust? Any tips?

@marc0olo any tips on how to convert code from caffeine?

Rust refactoring and dfx issues.

If you want/need to switch to Rust, I would recommend to use the basic solana example as a starting point and then add your additional logic there and remove functionality that you don’t need.