Skip to content

Latest commit

 

History

History
130 lines (93 loc) · 2.56 KB

claim.md

File metadata and controls

130 lines (93 loc) · 2.56 KB
Title Description
Claim
A high-level overview of how the command-line interfaces (CLI) works for the claim module.

Claim Module

Synopsis

This document provides a high-level overview of how the command line (CLI) interface works for the claim module.

Note that jq is recommended to be installed as it is used to process JSON throughout the document.

Command Line Interfaces

Transaction

Claim

Claim your claimable amount with a condition type.

Before claiming your claimable amount with certain condition, that condition must be met in previous.

Usage

crescentd tx claim claim [airdrop-id] [condition-type]
Argument Description
airdrop-id airdrop id
condition-type condition (task) type; deposit, swap, liquidstake, and vote

Example

# Claim a claimable amount with the liquidity deposit condition
crescentd tx claim claim 1 deposit \
--chain-id localnet \
--from alice \
--keyring-backend test \
--broadcast-mode block \
--yes \
--output json | jq

# Claim a claimable amount with the liquidity swap condition
crescentd tx claim claim 1 swap \
--chain-id localnet \
--from alice \
--keyring-backend test \
--broadcast-mode block \
--yes \
--output json | jq

# Claim a claimable amount with the liquidstaking stake condition
crescentd tx claim claim 1 liquidstake \
--chain-id localnet \
--from alice \
--keyring-backend test \
--broadcast-mode block \
--yes \
--output json | jq

# Claim a claimable amount with the gov vote condition
crescentd tx claim claim 1 vote \
--chain-id localnet \
--from alice \
--keyring-backend test \
--broadcast-mode block \
--yes \
--output json | jq

Query

Airdrops

Query for all airdrops

Usage

crescentd query claim airdrops

Example

crescentd query claim airdrops -o json | jq

Airdrop

Query details for the particular airdrop

Usage

crescentd query claim airdrop [airdrop-id]

Example

crescentd query claim airdrop 1 -o json | jq

ClaimRecord

Query the claim record for an account

Usage

crescentd query claim claim-record [airdrop-id] [address]

Example

crescentd query claim claim-record 1 cre1zaavvzxez0elundtn32qnk9lkm8kmcszxclz6p