Comments (7)
I find a solution that is
import abdex_types "abdex/x/oracle/types"
sdktypes.SetAddrCacheEnabled(false)
but another error comes up
panic: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account prefix1ekkxau47ztheg3c93xlgzph27uwnyl9v00knhr not found: key not found
why
from cli.
@TraderWithPython the account should be inside the keyring, like the example in the docs
accountName := "alice" // alice account should exist into the keyring
// Get account from the keyring
account, err := client.Account(accountName)
if err != nil {
log.Fatal(err)
}
addr, err := account.Address(addressPrefix)
if err != nil {
log.Fatal(err)
}
from cli.
@TraderWithPython the account should be inside the keyring, like the example in the docs
accountName := "alice" // alice account should exist into the keyring // Get account from the keyring account, err := client.Account(accountName) if err != nil { log.Fatal(err) } addr, err := account.Address(addressPrefix) if err != nil { log.Fatal(err) }
I thought
registry, err := cosmosaccount.New(
cosmosaccount.WithHome("./data"),
cosmosaccount.WithKeyringServiceName("OracleClientService"),
cosmosaccount.WithKeyringBackend(cosmosaccount.KeyringMemory),
)
would create a new keyring with memory backend.
Because there is a line in "New function", which is
r.Keyring, err = keyring.New(r.keyringServiceName, string(r.keyringBackend), r.homePath, inBuf, cdc)
I just want to use custom MNEMONIC to interact with blockchain with cosmosclient. what should I do?
from cli.
@TraderWithPython the account should be inside the keyring, like the example in the docs
accountName := "alice" // alice account should exist into the keyring // Get account from the keyring account, err := client.Account(accountName) if err != nil { log.Fatal(err) } addr, err := account.Address(addressPrefix) if err != nil { log.Fatal(err) }
If I use following commands to query
blockchaind query account prefix1ekkxau47ztheg3c93xlgzph27uwnyl9v00knhr
It raises a error that is
Error: your node may be syncing, please check node status using `/status`: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account prefix1ekkxau47ztheg3c93xlgzph27uwnyl9v00knhr not found: key not found
I cant understand it.
Why can't a custom address be queried? It should return a default value of 0. Please translate this to English.
from cli.
@TraderWithPython the account should be inside the keyring, like the example in the docs
accountName := "alice" // alice account should exist into the keyring // Get account from the keyring account, err := client.Account(accountName) if err != nil { log.Fatal(err) } addr, err := account.Address(addressPrefix) if err != nil { log.Fatal(err) }If I use following commands to query
blockchaind query account prefix1ekkxau47ztheg3c93xlgzph27uwnyl9v00knhr
It raises a error that is
Error: your node may be syncing, please check node status using `/status`: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account prefix1ekkxau47ztheg3c93xlgzph27uwnyl9v00knhr not found: key not found
I cant understand it. Why can't a custom address be queried? It should return a default value of 0. Please translate this to English.
The reason is that a new account need a tx to record in account module, such as transfer and using faucet.
from cli.
@TraderWithPython Do you have the Alice account in your chain config?
Use the blockchain keys list
to check all accounts you have. Also, check if you have any state for this account in your chain.
from cli.
@TraderWithPython any update?
from cli.
Related Issues (20)
- Fail to query state: error reading server preface: http2: frame too large HOT 3
- B
- Upgrade error: `SetIndex requires index to not be set` HOT 8
- Cosmwasm implementation produce forks HOT 10
- Docs: Update `SayHello` Function Example in Ignite Documentation to to Align with Latest Ignite HOT 1
- Ignite CLI tutorial : Unable to scaffold the basic chain HOT 4
- Ignite chain serve fails- Mac M1: signal killed HOT 1
- move to buf config v2
- Fee abstraction
- Importing proto definition of local module results to prefixed module with `cosmossdk.io/api` HOT 2
- Error while scaffolding new chain in Docker HOT 2
- Simulate fail for chains created with address-prefix setup HOT 4
- Ignite wasm implementation panics when user passes `--gas auto` flag HOT 3
- ignite chain serve fails
- Support offline mode
- Prevent Scaffolding Chains with Numbers in the Name
- documents about tokenfactory does not match the latest V28 version HOT 2
- Generate `ts-client` with minimal chain does not work HOT 2
- Integrate feedback form in Ignite CLI HOT 3
- Swagger API "Not Implemented" Error for Scaffolded Message 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 cli.