Solana: how to integrate your website into snowflake

Solana: how to integrate your website into snowflake
WEB3 ENGINEERING
SnowFlake.so does for Solana what Gnosis Safe multisig wallet does for EVM
Snowflake.so is a convenient and easy to use multisig wallet for Solana. By default it is easy to use for managing assets but things can become more complicated if you want multisig to have some admin rights in your application.
Thanks to the good design decisions of a team, it's not a big deal!

At first we created a separate page, dedicated to be an "admin" page of our project.
After that we need to add a special Wallet Adapter
npm install --save @snowflake-so/wallet-adapter-snowflake
Now we need to update a configuration for WalletAdapter:
const wallets = useMemo(
    () => {
      const result = [
          new UnsafeBurnerWalletAdapter(),
      ];
      if (isAdminView) {
        result.push(
          new SnowflakeSafeWalletAdapter()
        )
      }
      return result;
    },
    [network, isAdminView]
);
Some important details we saw during this project:

1) You link must not contain a # symbol. If it does, snowflake's UI crashes for no reason
2) You must not use versioned transactions. If you do, you are getting 'undefined does not have a .map property' error.

After your front page is ready, you can select "Apps" in the left menu, then press "+ Add" button in a top right corner, and add your application.

You can check our example and refer to the original documentation to get more details.
Close
Ready to take your business to the next level? Let's talk
I agree to the Terms of Service
Made on
Tilda