gillType aliases
SolanaClient
type SolanaClient<TClusterUrl> = {
rpc: RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>;
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi> & TClusterUrl;
sendAndConfirmTransaction: SendAndConfirmTransactionWithSignersFunction;
simulateTransaction: SimulateTransactionFunction;
urlOrMoniker: | SolanaClientUrlOrMoniker
| TClusterUrl;
};Type Parameters
| Type Parameter | Default type |
|---|---|
TClusterUrl extends ModifiedClusterUrl | string | string |
Properties
rpc
rpc: RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>;Used to make RPC calls to your RPC provider
rpcSubscriptions
rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi> & TClusterUrl;Used to make RPC websocket calls to your RPC provider
sendAndConfirmTransaction
sendAndConfirmTransaction: SendAndConfirmTransactionWithSignersFunction;Send and confirm a transaction to the network (including signing with available Signers).
If the transaction does not already have a latest blockhash (and is not already signed), it will be automatically retrieved and applied.
Default commitment level: confirmed
simulateTransaction
simulateTransaction: SimulateTransactionFunction;Simulate a transaction on the network
urlOrMoniker
urlOrMoniker:
| SolanaClientUrlOrMoniker
| TClusterUrl;Full RPC URL (for a private RPC endpoint) or the Solana moniker (for a public RPC endpoint)