ClearDAO FAQ
  • Getting Started
    • How it Works
    • Product
    • Roadmap
    • Team
    • ClearDAO Token
    • ClearDAO Token Bridge
    • Contact
  • Development Resources
    • SDK
      • ClearDAO Developer Guide
      • Deploy Contracts
        • Options and Notes
          • Quick Start
          • Configure Contract
          • Contract Upgrade
          • Contract Address
        • TRS
      • Configure Contract Parameters
      • Interact With Contracts
        • Options
        • Notes
        • TRS
        • CDS
          • README
          • CDS Buyer
          • Challenger
          • Liquidity Provider
          • Ticket
          • Ticket Market
          • Ticket Sale
          • Seller
      • Contract Reference
        • Oracle
        • Index Contract
        • Option Contract
        • Market Maker Contract
        • Note Contract
      • APIs
        • CDS
          • Config
          • Ticket
          • Ticket Sale
          • Transaction
          • CDS Market
          • Issue CDS
          • CDS Category
          • Ticket Market
        • Options and Notes
          • Configure
          • Price
          • User
          • Index
          • Option Parameter Configuration
          • Faucet
          • Market Maker
        • TRS
        • CLEARIndex
    • Barrier Options
    • NFT Marketplace
    • ClearIndex
  • Governance
    • CLH Staking Module
Powered by GitBook
On this page
  1. Development Resources
  2. SDK
  3. APIs
  4. CDS

Ticket Sale

-Get ticket sale info

Request URL

  • /api/ticket-sale/sale

Method

  • POST

Parameter

Parameter name
Required
Type
Explain

chain_type

Yes

string

stage_num

Yes

string

stage num,default 1

Return example

{
  "code": 0,
  "data": {
    "id": 1,
    "chain_type": 1,
    "stage_num": 1,
    "sale": 1,
    "pay_list": [
      {
        "price": "10000000000000000000",
        "cat_id": 1,
        "address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
        "remaining": "50",
        "show_price": "10.000000000000000000",
        "token_index": 0
      },
      {
        "price": "20000000000000000000",
        "cat_id": 2,
        "address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
        "remaining": "50",
        "show_price": "20.000000000000000000",
        "token_index": 0
      },
      {
        "price": "30000000000000000000",
        "cat_id": 3,
        "address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
        "remaining": "50",
        "show_price": "30.000000000000000000",
        "token_index": 0
      },
      {
        "price": "40000000000000000000",
        "cat_id": 4,
        "address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
        "remaining": "50",
        "show_price": "40.000000000000000000",
        "token_index": 0
      },
      {
        "price": "50000000000000000000",
        "cat_id": 5,
        "address": "0xb8272d8dd058bdaf1d2c2337fde1131915318dbd",
        "remaining": "50",
        "show_price": "50.000000000000000000",
        "token_index": 0
      },
      {
        "price": "100000000000000000",
        "cat_id": 1,
        "address": "0x0000000000000000000000000000000000000000",
        "remaining": "28",
        "show_price": "0.100000000000000000",
        "token_index": 2
      },
      {
        "price": "200000000000000000",
        "cat_id": 2,
        "address": "0x0000000000000000000000000000000000000000",
        "remaining": "28",
        "show_price": "0.200000000000000000",
        "token_index": 2
      },
      {
        "price": "300000000000000000",
        "cat_id": 3,
        "address": "0x0000000000000000000000000000000000000000",
        "remaining": "28",
        "show_price": "0.300000000000000000",
        "token_index": 2
      },
      {
        "price": "400000000000000000",
        "cat_id": 4,
        "address": "0x0000000000000000000000000000000000000000",
        "remaining": "28",
        "show_price": "0.400000000000000000",
        "token_index": 2
      },
      {
        "price": "500000000000000000",
        "cat_id": 5,
        "address": "0x0000000000000000000000000000000000000000",
        "remaining": "28",
        "show_price": "0.500000000000000000",
        "token_index": 2
      }
    ],
    "created_at": "2022-04-11 13:40:18",
    "updated_at": "2022-04-13 08:01:14"
  },
  "extra": null
}

Return parameter description

Parameter name
Type
Explain

sale

bool

1:in sale,0: not in sale

pay_list

json

Method of Paymen

Pay_list

Parameter name
Type
Explain

price

int

Contract initial price

cat_id

int

Ticket classified id

address

address

Token address,Zero address means the main token

remaining

int

Remaining amount

show_price

int

Show price

PreviousTicketNextTransaction

Last updated 1 year ago

KCC:1, Refer to the

config