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

-Get ticket info

Request URL

  • /api/ticket/token-info

Method

  • POST

Parameter

Parameter name
Required
Type
Explain

chain_type

Yes

string

ticket_id

Yes

string

ticket unique id

Return example

{
  "code": 0,
  "data": {
		"id": 1,
		"chain_type": 1,
		"owner": "0xf2189edf207c35101d6240e0181b9c2004bbdc47",
		"from": "0x0000000000000000000000000000000000000000",
		"token_id": 1,
		"category": 3,
		"used": 0,
		"chance": 3,
		"maturity_date": 0,
		"term": 0,
		"price": "0.000000000000000000",
		"taker": "",
		"rent_owner": "",
		"pay_token": "",
		"is_grey": 0,
		"is_staked": 0,
		"created_at": "2022-04-11 13:24:06",
		"updated_at": "2022-04-11 13:24:13"
  },
  "extra": null
}

Return parameter description

Parameter name
Type
Explain

id

int

automatic generated unique id

chain_type

int

owner

int

ticket owner

from

int

transfer from

token_id

int

ticket unique id,same to ticket_id

category

int

ticket unique id,ticket_id

used

int

cds used chance

chance

int

cds total chance

maturity_date

timestamp(seconds)

rental matuirty date

term

int(seconds)

rental time

price

int

rental price

taker

address

rental taker

rent_owner

address

rental taker

pay_token

address

rental pay token

is_grey

bool

1:in greylist,0:not in greylist

is_staked

bool

1: ticket has been pledged,0: ticket are not pledged

  • get ticket info

Request URL

  • /api/ticket/tokens

Method

  • POST

Parameter

Parameter name
Required
Type
Explain

chain_type

Yes

string

address

Yes

address

owner address

Return example

{
  "code": 0,
  "data": [
    {
      "id": 1,
      "chain_type": 1,
      "owner": "0xf2189edf207c35101d6240e0181b9c2004bbdc47",
      "from": "0x0000000000000000000000000000000000000000",
      "token_id": 1,
      "category": 3,
      "used": 0,
      "chance": 3,
      "maturity_date": 0,
      "term": 0,
      "price": "0.000000000000000000",
      "taker": "",
      "rent_owner": "",
      "pay_token": "",
      "is_grey": 0,
      "is_staked": 0,
      "created_at": "2022-04-11 13:24:06",
      "updated_at": "2022-04-11 13:24:13"
    }
  ],
  "extra": null
}

Return parameter description

Same as above

PreviousConfigNextTicket Sale

Last updated 1 year ago

KCC:1, Refer to the

KCC:1, Refer to the

KCC:1, Refer to the

config
config
config