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

Last updated