osmosis-labs / osmojs

OsmosJS makes it easy to compose and broadcast Osmosis and Cosmos messages
https://cosmology.zone/products/osmojs
Apache License 2.0
63 stars 32 forks source link

How to make a swap on osmosis #7

Closed blavejr closed 2 years ago

blavejr commented 2 years ago

Hey guys, so I found this repo via cosmjs and cosmology and I have been trying for about 2 days now to make a swap on osmosis with no luck, I followed the examples and even read the core code trying to figure it out but I keep getting a 503 Service Unavailable, No server is available to handle this request error

Could you guys please maybe create an example with the simplest way to use this package to make a simple osmo to atom swap on osmosis?

pyramation commented 2 years ago

if you followed the cosmology example, your code likely works.

a 503 error is a network error, you should try using another endpoint. This means that a node is down or having issues.

If you have a specific error to report please make an issue, otherwise for support you can join the discord here where I am helping with issues dynamically

blavejr commented 2 years ago

Alright thanks for the response. do you know where I can get other rpc providers?

pyramation commented 2 years ago

https://github.com/cosmos/chain-registry which you can also use via npm https://github.com/cosmology-tech/chain-registry