Skip to content

Latest commit

 

History

History
116 lines (94 loc) · 2.17 KB

claim.md

File metadata and controls

116 lines (94 loc) · 2.17 KB
Title Description
Claim
A high-level overview of what gRPC-gateway REST routes are supported in the claim module.

Claim Module

Synopsis

This document provides a high-level overview of what gRPC-gateway REST routes are supported in the claim module.

gRPC-gateway REST Routes

++https://github.com/cosmosquad-labs/squad/blob/main/proto/squad/claim/v1beta1/query.proto

Airdrops

Example Request

http://localhost:1317/squad/claim/v1beta1/airdrops

Example Response

{
  "airdrops": [
    {
      "id": "1",
      "source_address": "cosmos15rz2rwnlgr7nf6eauz52usezffwrxc0mz4pywr",
      "conditions": [
        "CONDITION_TYPE_DEPOSIT",
        "CONDITION_TYPE_SWAP",
        "CONDITION_TYPE_LIQUIDSTAKE",
        "CONDITION_TYPE_VOTE"
      ],
      "start_time": "2022-02-01T00:00:00Z",
      "end_time": "2022-03-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_key": null,
    "total": "1"
  }
}

Airdrop

Example Request

http://localhost:1317/squad/claim/v1beta1/airdrops/1

Example Response

{
  "airdrop": {
    "id": "1",
    "source_address": "cosmos15rz2rwnlgr7nf6eauz52usezffwrxc0mz4pywr",
    "conditions": [
      "CONDITION_TYPE_DEPOSIT",
      "CONDITION_TYPE_SWAP",
      "CONDITION_TYPE_LIQUIDSTAKE",
      "CONDITION_TYPE_VOTE"
    ],
    "start_time": "2022-02-01T00:00:00Z",
    "end_time": "2022-03-21T00:00:00Z"
  }
}

ClaimRecord

Example Request

http://localhost:1317/squad/claim/v1beta1/airdrops/1/claim_records/cosmos1zaavvzxez0elundtn32qnk9lkm8kmcszzsv80v

Example Response

{
  "claim_record": {
    "airdrop_id": "1",
    "recipient": "cosmos1zaavvzxez0elundtn32qnk9lkm8kmcszzsv80v",
    "initial_claimable_coins": [
      {
        "denom": "airdrop",
        "amount": "3000000000000"
      }
    ],
    "claimable_coins": [
      {
        "denom": "airdrop",
        "amount": "3000000000000"
      }
    ],
    "claimed_conditions": [
    ]
  }
}