open-index/open-npm huggingface dataset:
npm package: @infinex/solana-client
Description: Client to interact with the Infinex Solana Programs.
Latest version: 0.0.75

# `@infinex/solana-client`

Client to interact with the Infinex Solana Programs.

## Usage

### Client Creation

```ts
const solanaClient = createClient({
  environment: "devnet" // or "localnet" / "mainnet"
  payer: Keypair.fromSecretKey(JSON.parse(process.env["MY_KEYPAIR_ENV"])), // fee payer keypair
  connection: "https://api.devnet.solana.com" // rpc url or `@solana/web3.js` `Connection` instance.
});
```