Interface: NosanaClient
The Nosana client interface. Contains all the services and programs needed to interact with the Nosana network.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
api | readonly | NosanaApiWithApiKey | - |
authorization | readonly | NosanaAuthorization | - |
config | readonly | ClientConfig | - |
ipfs | readonly | object | - |
ipfs.pin | public | (data) => Promise<string> | - |
ipfs.pinFile | public | (path) => Promise<string> | - |
ipfs.retrieve | public | <T>(hash) => Promise<T> | - |
jobs | readonly | JobsProgram | - |
logger | readonly | Logger | - |
merkleDistributor | readonly | MerkleDistributorProgram | - |
nos | readonly | TokenService | - |
solana | readonly | SolanaService | - |
stake | readonly | StakeProgram | - |
wallet | public | Wallet | undefined | The wallet. Must be a Wallet (supports both message and transaction signing). Set this property directly to configure the wallet. Example import { createNosanaClient, NosanaNetwork } from '@nosana/kit'; const client = createNosanaClient(NosanaNetwork.MAINNET); client.wallet = myWallet; |