Skip to content

Integrate Solana App

Estimated time to read: 2 minutes

Integrate 'Solana' apps with Arcana Auth SDK and onboard users via social login. Enable users to sign blockchain transactions with the in-app Arcana wallet.

Prerequisites

Non-EVM Chains

When registering an app through Arcana Developer Dashboard, the choice of chain type (EVM, Solana, MultiversX, Near) is final. App developers can't change it later. They can switch the default chain within the same type. For example, a Solana app on Testnet can switch to Solana Mainnet or Solana Dev but not to MultiversX or an EVM chain.

Steps

Select your 'Solana' app type and follow the integration instructions. Solana apps will require to initialize and use Solana Provider in addition to the AuthProvider.

1. Install

Depending upon the app type, you may need to install one or more SDKs and the integration code may vary from one app type to another.

2. Integrate App

Select your 'Solana' app type and follow the integration instructions.

3. Initialize Solana Provider

Solana apps can use the auth.provider to make standard JSON RPC calls in the context of an authenticated user.

const provider = auth.provider;

Use the Solana provider for issuing Solana Web3 wallet operations in the context of an authenticated user.

const solanaP = auth.solana;

What's Next?

Add code to onboard users. Use AuthProvider, the standard EIP-1193 Web3 provider to call support JSON/RPC functions and Web3 wallet operations. Learn more...

See also

'Solana' integration example: See sample-auth-solana submodule in Auth Examples

Try Demo App!


Last update: July 23, 2024 by shaloo