cosmostation / cosmosjs

:star: CosmosJS - Cosmos JavaScript Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LCD url: to be or not to be?

sollerias opened this issue · comments

commented

Hello, guys! Could you, please, explain what the «LCD url» means in the following sentence:

Cosmostation offers LCD url(https://lcd-cosmos-free.cosmostation.io)

and for what purpose does it serve? Do I need to use this URL? Looks like some kind of URL for testing.

Thanks in advance for your reply!

commented

Yes, that is the url for our REST server for public use.

commented

And so I just change lcdUrl variable from here:

const cosmos = cosmosjs.network(lcdUrl, chainId);

with my network settings and everything will be fine, yes?

commented

@sollerias Yes, make sure to use chainId as cosmoshub-3 since this is the current chain id for Cosmos Hub.
And reference this link to find what REST APIs are available.

Hi all,
I want to test the cosmosjs txs sign on my blockchain and for that, I have changed the const cosmos = cosmosjs.network("https://127.0.0.1:1317", chainId); here the chained for me is a test. does anything else to change for this testing ?

commented

@kogisin, ooh, really, really, great, incredible, thanks! I read the RPC from your link (this link) and did not find something like createwallet in Bitcoin RPC. Could you clarify if this means that there is no way to create a wallet using RPC Cosmos? This article also mentions that there must be an RPC to create a new account locally, but I also cannot find it.

I attach the picture from the article with the auth request below:

cosmostation_article1

commented

@Persistencesujith That should probably work as long as your local chain doesn't have any custom modules. Try and let us know if you get any issue

@sollerias There is no REST API that enables you to create cosmos wallet. As long as you have your mnemonics, you can extract your cosmos address from it by using this library.

I'll close this issue since we are not using this for Q&A. We are using this to track any issues related to our library or feature requests. You can join our Telegram channel to ask further questions.