Questions tagged [cosmos-sdk]

48 questions
2
votes
2 answers

Error in setting up genesis transactions -- what am I doing wrong?

I'm trying to go through the "Running a node" tutorial here: https://github.com/cosmos/cosmos-sdk/blob/master/docs/run-node/run-node.md I seem to have some issue though, the genesis transactions don't manage to set up a validator, so the validator…
hjorthjort
  • 55
  • 4
2
votes
2 answers

cosmos-sdk decimal precision for coins onchain

Am building a cosmos-sdk chain and was wondering what the official support was for coin's decimal precision on a cosmos chain either being minted via a peg or seeded via genesis as the primary staking/demon token. We would like to support 10**18 as…
utx0_
  • 1,364
  • 14
  • 24
2
votes
3 answers

How can I make a batch send transaction?

I'm having trouble sending tokens to many addresses simultaneously. As far as I know, Cosmos does not support batch sending, so I have to make one tx for each recipient, and make sure the account sequence (nonce) is correct for each tx. So if I…
randomshinichi
  • 420
  • 5
  • 15
2
votes
1 answer

Querying delegations for a validator at a specific height

Is it possible to query: the set of delegators for a given validator at a specific height? the amount each delegator has delegated to a given validator at a specific height? Something like the output of the…
2
votes
3 answers

How to use an OR condition with the Tendermint websocket /subscribe method?

What's the best way to implement an OR condition in the query of a Tendermint websocket /subscribe method? https://docs.tendermint.com/master/rpc/#/Websocket/subscribe Specifically I want to query message.sender='${address}' OR…
assafmo
  • 1,047
  • 3
  • 15
  • 32
2
votes
1 answer

How to convert exported Cosmos SDK private key to format that can be imported by Keplr or Metamask?

Keplr just added the feature to import an account using a private key (which is awesome!). This was primarily requested because a number of lunie users lost their mnemonic phrases but maintained their access to lunie itself. That meant lunie could…
okwme
  • 740
  • 1
  • 7
  • 19
2
votes
1 answer

How to install Relayer for Cosmos SDK Starport chain

I have created a blockchain with Starport (https://github.com/tendermint/starport). The command to install I used was starport app github.com/tosch110/stargateapp --sdk-version=stargate Now trying to run starport serve and start my blockchain, I…
Tosch
  • 475
  • 5
  • 12
1
vote
0 answers

What could be the possible solution to golang ambigious import found package in multiple modules issue?

In the go.mod file of the project, I encountered an issue with one of the indirect imports. The error message I received states that there is an ambiguous import, indicating that the Go compiler is unsure about the source of the correct…
1
vote
0 answers

Net Core CosmosDb SDK - How to set the connection string after application startup?

I want to connect to CosmosDb from an IOT Device (running as a Net Core 7 Web App) where the connection string is not known in advance of the application startup. In order to maintain some security and eliminate the need to store any connection…
OJB1
  • 2,245
  • 5
  • 31
  • 63
1
vote
1 answer

How do you delete the keyring and change the passphrase for any cosmos sdk blockchain?

I spent some time trying to change the passphrase for stride cosmos sdk blockchain. Even after deleting all keys, I was always prompted to enter the old passphrase when i created a new key and it wasnt clear if the keyring was deleted or not. . Same…
Emeka Onwuliri
  • 145
  • 1
  • 4
1
vote
1 answer

Does 'msgMultiSend' of Cosmos coin, guarantee the order of input and output?

I am a coin wallet developer, and I am investigating Cosmos' transfer this time. Cosmos has msgMultiSend as well as msgSend. I know that MsgMultiSend sends several transfers using inputs and outputs in the form of an array. At this time, I wonder if…
PaperFrog
  • 155
  • 5
1
vote
1 answer

How to resolve "edition2021 is required" when compiling all cw-plus contracts in docker container?

I am trying to compile all contracts on the repo root. When running I get an error: docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount…
Arcayne
  • 1,186
  • 1
  • 15
  • 35
1
vote
1 answer

Cosmwasm environment setup error: "first path segment in URL cannot contain colon"

I'm trying to go through the Cosmwasm docs and I'm stuck on the "Setting Up Environment" step. I'm on Ubuntu so when I put the parameters under #bash in my .bashrc script along with saving "tcp://0.0.0.0:26657" to the $RPC environment variable, and…
1
vote
1 answer

Unable to reach keeper code on Cosmos SDK app

I am trying to get debug a Cosmos SDK app. In order to do that, I am putting Goland breakpoints and fmt.Println statements. The problem I am getting is that I can only intercept the parts of the application that happen before sending the application…
aolivera
  • 512
  • 1
  • 4
  • 23
1
vote
0 answers

Error: error during handshake: error on replay: validator set is nil in genesis and still empty after InitChain Usage:

I'm trying to start a new node : https://github.com/cosmos/mainnet It looks like I'm having some issue with gaiad start after I Fetch the mainnet's genesis.json file into gaiad's config directory. mkdir -p $HOME/.gaia/config wget…
Tobi Aina
  • 11
  • 2