Find answers instantly with AI search. Start typing your prompt below and let AI do the digging for you!

Staking Tokens

We can use the sscd binary to stake tokens i.e. delegate the tokens to a validator belonging to SSC.

The general command is

sscd tx staking delegate <validator operator address> <amount-to-stake> --from <your key>

The following example demonstrates a successful staking operation

$ sscd tx staking delegate sagavaloper1rdssl22ysxyendrkh2exw9zm7hvj8d2jj6rezq \
30usaga --from mykey1 \
--node <address of an SSC node e.g. tcp://134.167.114.164:26657> \
--chain-id <Chain Id of the SSC chain e.g. ssc-1>

auth_info:
  fee:
    amount: []
    gas_limit: "200000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.staking.v1beta1.MsgDelegate
    amount:
      amount: "30"
      denom: usaga
    delegator_address: saga1rdssl22ysxyendrkh2exw9zm7hvj8d2ju346g3
    validator_address: sagavaloper1rdssl22ysxyendrkh2exw9zm7hvj8d2jj6rezq
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: EC1433347D798D10A0E550041789A5041258FD2CACE0B2680939179FA249802E

Last updated