Comments (3)
I personally recommend running the testnet either on the local computer or on a server. Then run rest server (LCD). If you know the rest server url, you could connect.
Deploy your own testnet: https://hub.cosmos.network/master/gaia-tutorials/deploy-testnet.html
Setting up the rest server: https://hub.cosmos.network/master/resources/service-providers.html#setting-up-the-rest-server
Yes, you can generate derive address by HD path. You can modify this line(https://github.com/cosmostation/cosmosjs/blob/v0.6.4/example/cosmoshub.js#L8).
Ex. cosmos.setPath("m/44'/118'/0'/0/0") -> cosmos.setPath("m/44'/118'/0'/0/1")
from cosmosjs.
Hi I did what you said I run a testnet and rest server
but when I query for my address it does not show any result.
curl http://localhost:1317/bank/balances/cosmos199uttp2xjt90zl5t2unu289ghmt5yt536u2vkz
{"height":"3366","result":[]}
here is the latest block
http://localhost:1317/blocks/latest
{
"block_meta": {
"block_id": {
"hash": "2F2C90BF424D558BE0EC3EB494E4190C087A11019F855069278AC1233DCB5D1D",
"parts": {
"total": "1",
"hash": "8003B99CF535F31920674FAF09DDD03B938184926043355E0D1916C65D90D36A"
}
},
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "testing",
"height": "3330",
"time": "2020-07-15T17:18:03.579969233Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "0038B9BF3E2F50EE2D2B26866C565DB50A55F3F29C9AA8332208CE12A89D0C6A",
"parts": {
"total": "1",
"hash": "AFDD7BB65EB669DC5623E40C2DD7440A9ACF30D5F0153401EEE049DFED858F8E"
}
},
"last_commit_hash": "E24DEEF97379D7955024F53CAFED08006A6C9DBB5F45065EF64A5A7858518B0E",
"data_hash": "",
"validators_hash": "C024FFEF7E84178E7537505209A40210A086B9B804C22D03174DBE0D66C44D61",
"next_validators_hash": "C024FFEF7E84178E7537505209A40210A086B9B804C22D03174DBE0D66C44D61",
"consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
"app_hash": "11C9E787FBC99D047FC81A18CA717B477CC6EA7373C2F98F5925EBE4CBBA6AC9",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "5BE3B6E810BA837AFCF43FD2D8FA72C93B9702ED"
}
},
"block": {
"header": {
"version": {
"block": "10",
"app": "0"
},
"chain_id": "testing",
"height": "3330",
"time": "2020-07-15T17:18:03.579969233Z",
"num_txs": "0",
"total_txs": "0",
"last_block_id": {
"hash": "0038B9BF3E2F50EE2D2B26866C565DB50A55F3F29C9AA8332208CE12A89D0C6A",
"parts": {
"total": "1",
"hash": "AFDD7BB65EB669DC5623E40C2DD7440A9ACF30D5F0153401EEE049DFED858F8E"
}
},
"last_commit_hash": "E24DEEF97379D7955024F53CAFED08006A6C9DBB5F45065EF64A5A7858518B0E",
"data_hash": "",
"validators_hash": "C024FFEF7E84178E7537505209A40210A086B9B804C22D03174DBE0D66C44D61",
"next_validators_hash": "C024FFEF7E84178E7537505209A40210A086B9B804C22D03174DBE0D66C44D61",
"consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
"app_hash": "11C9E787FBC99D047FC81A18CA717B477CC6EA7373C2F98F5925EBE4CBBA6AC9",
"last_results_hash": "",
"evidence_hash": "",
"proposer_address": "5BE3B6E810BA837AFCF43FD2D8FA72C93B9702ED"
},
"data": {
"txs": null
},
"evidence": {
"evidence": null
},
"last_commit": {
"block_id": {
"hash": "0038B9BF3E2F50EE2D2B26866C565DB50A55F3F29C9AA8332208CE12A89D0C6A",
"parts": {
"total": "1",
"hash": "AFDD7BB65EB669DC5623E40C2DD7440A9ACF30D5F0153401EEE049DFED858F8E"
}
},
"precommits": [
{
"type": 2,
"height": "3329",
"round": "0",
"block_id": {
"hash": "0038B9BF3E2F50EE2D2B26866C565DB50A55F3F29C9AA8332208CE12A89D0C6A",
"parts": {
"total": "1",
"hash": "AFDD7BB65EB669DC5623E40C2DD7440A9ACF30D5F0153401EEE049DFED858F8E"
}
},
"timestamp": "2020-07-15T17:18:03.579969233Z",
"validator_address": "5BE3B6E810BA837AFCF43FD2D8FA72C93B9702ED",
"validator_index": "0",
"signature": "Le8hWAXJEw/TcWTBTbbf+npdvw06sp6e7w2fm1/V5+/rAZ/k1JeWlCgwfZ1EdxoCXr/E8ri2BsYTjuHyGWDxCg=="
}
]
}
}
}
from cosmosjs.
is the testnet need to sync?
curl http://localhost:1317/syncing
{"syncing":false}
it shows syncing false
from cosmosjs.
Related Issues (20)
- Does it contain testnet address generation? HOT 4
- How do I get privateKey after address generation? HOT 5
- how can i modify the commission rate for the node ? HOT 3
- Crypto has been deprecated HOT 2
- Add contributors for this library HOT 8
- Unable to Broasdcast StdTX HOT 2
- Internal error with codespace undefined while broadcasting transaction HOT 2
- LCD url: to be or not to be? HOT 6
- error: 'unsupported return type. supported types: block, sync, async' HOT 1
- How to sign a tx which is base64 encoded HOT 1
- private keys in hex HOT 1
- Decode unconfirmed txs HOT 1
- Iris send signing HOT 2
- 'unauthorized: signature verification failed; verify correct account sequence and chain-id HOT 3
- Need to mention stargate-final chainId in getAccount method HOT 1
- README Deprecation HOT 1
- Problem with bip39 HOT 1
- Simulate Tx HOT 3
- chains/logo/crypto-org.png HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmosjs.