project-serum / serum-ts

Project Serum TypeScript monorepo
https://projectserum.com
Apache License 2.0
270 stars 245 forks source link

Unable to use testnet and devnet Solana endpoints to create a connection #232

Open Danilo-Araujo-Silva opened 2 years ago

Danilo-Araujo-Silva commented 2 years ago

Why we cannot use testnet and devnet endpoint defined here on the Solana documentation in order to create our connections?

Solana documentation: https://docs.solana.com/cluster/rpc-endpoints

Testnet https://api.testnet.solana.com

Devnet https://api.devnet.solana.com

Using them it seems we cannot load the markets (await Market.load(connection, marketAddress, {}, programAddress)) and because of that we cannot place, cancel, or retrieve the orders.

GiveMeSomething commented 2 years ago

Please check that the marketAddress and programAddress actually existed on testnet/devnet.

Check the marketAddress and programAddress here

Also I think testnet don't have Serum running, but devnet does. Here is its address on devnet: DESVgJVGajEgKGXhb6XmqDHGz3VjdgP7rEVESBgxmroY

References: Serum DEX