From 3f86522a3f51fdc721cc18975bf2e7076ae9e7f2 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Wed, 23 Mar 2022 13:07:38 -0500 Subject: [PATCH] fix readme endpoint --- packages/serum/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/serum/README.md b/packages/serum/README.md index 6d959722..b606c821 100644 --- a/packages/serum/README.md +++ b/packages/serum/README.md @@ -25,7 +25,8 @@ yarn add @solana/web3.js @project-serum/serum import { Account, Connection, PublicKey } from '@solana/web3.js'; import { Market } from '@project-serum/serum'; -let connection = new Connection('https://testnet.solana.com'); +// Refer to https://docs.solana.com/cluster/rpc-endpoints +let connection = new Connection('https://api.testnet.solana.com'); let marketAddress = new PublicKey('...'); let programAddress = new PublicKey("..."); let market = await Market.load(connection, marketAddress, {}, programAddress);