🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@rarimo/providers-solana

Package Overview
Dependencies
Maintainers
5
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rarimo/providers-solana

Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the Solana blockchain.

Source
npmnpm
Version
2.0.0-rc.33
Version published
Weekly downloads
62
-48.76%
Maintainers
5
Weekly downloads
 
Created
Source

@rarimo/providers-solana

Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the Solana blockchain.

version (scoped package) types tree-shaking checks

Example

For example applications, see rarimo/js-sdk-examples on GitHub.

Here is an example that creates a PhantomProvider object for a Phantom wallet and prints its address:

import { createProvider } from '@rarimo/provider'
import { PhantomProvider } from '@rarimo/providers-solana'

const getPhantomWalletAddress = async () => {
  // Connect to the Phantom wallet in the browser using the PhantomProvider interface to limit bundle size.
  const provider = await createProvider(PhantomProvider)
  await provider.connect()

  // Get the address of the wallet
  console.log(provider.address)
}

Changelog

For the change log, see CHANGELOG.md.

Keywords

sdk

FAQs

Package last updated on 11 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts