Solana JSON-RPC Operations
Solana chain is a bit different from typical EVM chains in how it supports Solana JSON-RPC calls and Web3 wallet operations.
First install the Arcana Auth SDK, integrated the Solana app with the SDK and initialize the auth.provider
. Then issue the JSON-RPC calls. See getAccounts
call below as an example.
Get Public Key
const provider = auth.provider;
const publicKey = await provider.request({
method: 'getAccounts', params: [""]
});
The publicKey
is returned as a string: ["your-public-key-in-string-format"].
Last update:
March 15, 2024 by