Skip to main content

Claiming Morse Applications

Table of Contents

What is this?

  • Claim your Morse Application as a Shannon Application
  • This is like staking a new Shannon Application, but you don't specify stake_amount
  • All config is the same as staking an application except omit stake_amount

How do I claim my Morse Application as a Shannon Application?

0. Prerequisites

  • You have read the Claiming Introduction
  • You have installed the Morse pocket CLI
  • You have installed the Shannon pocketd CLI
  • You have imported your Morse key into a keyring
  • You have a valid RPC endpoint
  • You are familiar with how to stake a native Shannon Application (see application staking config)

1. Prepare your Morse and Shannon Keys and Accounts

Follow steps 1-5 from Claiming Morse Account

2. Prepare your application config

Use the same format as for staking an application. See Application staking config for details.

Make sure to omit stake_amount.

CRITICAL: Omit stake_amount
  • DO NOT include stake_amount in your application config when claiming
  • If you include it, the claim will fail

3. Claim your Morse Application

pocketd tx migration claim-application \
pocket-account-<morse-keyfile-export>.json \
<service_id> \
--from=<your_shannon_address> \
--node=${RPC_ENDPOINT} --chain-id=pocket-<network> \
--home=~/.pocketd --keyring-backend=test --no-passphrase
# --gas=auto --gas-prices=1upokt --gas-adjustment=1.5 (optional)

4. Example output

Enter Decrypt Passphrase:
MsgClaimMorseApplication {
"shannon_dest_address": "pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4",
"morse_src_address": "1A0BB8623F40D2A9BEAC099A0BAFDCAE3C5D8288",
"morse_signature": "6kax1TKdvP1sIGrz8lW8jH/jQxv5OiPiFq0/BG5sEfLwVyVNVXihDhJNXd0cQtwDiMPB88PCkvWZOdY/WMY4Dg==",
"service_config": {
"service_id": "anvil"
}
}
Confirm MsgClaimMorseApplication: y/[n]: y

5. Verify your Shannon application

pocketd query application <your_shannon_address> --node=${RPC_ENDPOINT}

6. What happened?

  • Unstaked balance of Morse account is minted to your Shannon account
  • Stake is set on Shannon using the onchain Morse application's stake amount
  • Both values come from the onchain MorseClaimableAccount
  • Shannon actors can modify staking configurations (e.g. service_id)

Troubleshooting

See: pocketd tx migration claim-application --help for more details.