gill
gill/Type aliases

SolanaClient

type SolanaClient<TClusterUrl> = {
  rpc: RpcFromTransport<SolanaRpcApiFromTransport<RpcTransportFromClusterUrl<TClusterUrl>>, RpcTransportFromClusterUrl<TClusterUrl>>;
  rpcSubscriptions: RpcSubscriptions<SolanaRpcSubscriptionsApi> & TClusterUrl;
  sendAndConfirmTransaction: SendAndConfirmTransactionWithSignersFunction;
  simulateTransaction: SimulateTransactionFunction;
};

Type Parameters

Type ParameterDefault type
TClusterUrl extends ModifiedClusterUrl | stringstring

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)

Default commitment level: confirmed


simulateTransaction

simulateTransaction: SimulateTransactionFunction;

Simulate a transaction on the network

On this page