Stake as cw3

Goal: stake as the cw3 multisig contract

Fund the cw3 contract

MULTISIG=nibi1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqugq26k
FROM=nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl

nibid tx bank send \
$FROM \
$MULTISIG \
100000000unibi \
--fees 5000unibi \
--yes | tx

(Optional) Verify funds were transferred

MULTISIG=nibi1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqugq26k

nibid q bank balances $MULTISIG | jq

You should get a response similar to the following:

{
  "balances": [
    {
      "denom": "unibi",
      "amount": "100000000"
    }
  ],
  "pagination": {
    "next_key": null,
    "total": "0"
  }
}

Query list of validators

We need a validator to stake to

Create cw3 proposal

Every action executed by a cw3 multisig must first be proposed and voted on.

Select a validator address from the previous step.

Create base64 encoded stargate msg

Upload proposal

You should get a proposal id in the event logs, e.g.

(Optional) Vote on Proposal

There's no need to vote on the cw3 proposal if the proposal already passed (it should be if you're following this tutorial and only have one member in the cw4-group).

Use the proposal id from the previous step.

Execute the Proposal

Send the execution tx and complete the proposal. All msgs in the proposal will be sent as though the sender is the cw3 multisig contract.

Use the proposal id from the previous step.

The output should resemble the following:

Query validator delegations

Verify that the delegation went through

If everything was successful, then the output should resemble

Query the proposal

The output should resemble the following:

Last updated

Was this helpful?