T402 API Reference - v2.8.0
    Preparing search index...

    Function createRpcClient

    • Create an RPC client for the specified network

      Parameters

      • network: Network

        Network identifier (CAIP-2 or V1 format)

      • OptionalcustomRpcUrl: string

        Optional custom RPC URL

      Returns
          | RpcDevnet<SolanaRpcApiForTestClusters>
          | RpcTestnet<SolanaRpcApiForTestClusters>
          | RpcMainnet<SolanaRpcApiForAllClusters>

      RPC client for the specified network