프로젝트

일반

사용자정보

Actions

GetTickets

  • 티켓 목록을 조회합니다.

getTickets(
param: TicketListRequest
): TicketListResponse

TicketListRequest (param)

field type description note
did String    
command String   값 : listTicket
lowerBound String    
upperBound String    
index String    
pageSize int 한 페이지에 출력 할 proposal 수 (pageSize <= 100) option(미 입력 시 pageNation 사용X)
pageNum int 해당 페이지 조회 (0번 시작) option(미 입력 시 pageNation 사용X)

TicketListResponse

field type description note
command String   값 : listTicket
tickets List<Ticket>    

Ticket

field type description note
status int    
ticketId String    
expiredAt String    
createdAt String    
updatedAt String    
proposal Proposal    

Proposal

field type description note
command String    
status int    
purpose int    
maxIssuable int    
category int[]    
disAllowMultiIssue boolean    
condition String    
content String    
createdAt String    
revokedAt String    
updatedAt String    
deposit String    
duration String    
filter String    
notAfter String    
notBefore String    
owner String    
proposalId String    
ticketValidFrom String    
description String[]    
imageurl String[]    
consumePolicy ProposalConsumePolicy    
rewardPolicy ProposalRewardPolicy    

ProposalConsumePolicy

field type description note
type int 소모 유형  
count int 소모 허용 횟수  
maxDataCount int consume시 최대 데이터 소모 수 optional
period String 소모 주기 optional

ProposalRewardPolicy

field type description
type int 지급 유형
amount int 티켓의 지급 가능 총량
tokenDuration String 리워드 유효기간

Request Example

query {
  getTickets (param: {
    did: "G5rw9qAMbozGxySHkMaztD" 
    command: "listTicket" 
    index: "Owner" 
    lowerBound: "G5rw9qAMbozGxySHkMaztD" 
    upperBound: "G5rw9qAMbozGxySHkMaztD" 
  }) {
    tickets {
      status
      ticketId
      proposal {
        status
        owner
        proposalId
      }
    }
  }
}

Response Example

{
  "data": {
    "getTickets": {
      "tickets": [
        {
          "status": 2,
          "ticketId": "orPxmv15e2oSPuvTht3g8Q2jaqpYpfriSdGcJiuf5TvGgnXai9eyz3YRQ27FBq3gHwuKECqMKJktncAQykcTYZjVaxKQ26wSVwSFSsoRqojdcbNxA",
          "proposal": {
            "status": 0,
            "owner": "CukJeA3C31aA5bdFTyxYRr",
            "proposalId": "orPxmv15e2oSPufT3Tm5AyVSfnTRnnMhUyCvfziPVa73yiPCvyMAUamcSGPRH981rNPtaMF7j6BdGWJLPYMQCGThqrobeYYQmhjPYvmgwFmUteoyt" 
          }
        },
        {
          "status": 0,
          "ticketId": "orPxmv15e2oSPuvTht4CGvFMaWgatRwBgKNuudBzi1Cm9XdEt4pavQBC7ZBgUukEchULxGe2vH7iQRxconRqChCiLE4DhyonxE5WaT4iXs666mbnR",
          "proposal": {
            "status": 0,
            "owner": "NfoPEFaG1adkCpijR85L66",
            "proposalId": "orPxmv15e2oSPufT3TkbTk9zkvXpo25uKkfcuW3xg9dXXTCBokDdgg7x5Cr6ebk9fDrrpVKWFNHY5Jg9ZEqAFpbHKXKaX3rQfUQBPKN36C9U31x1c" 
          }
        }
      ]
    }
  }
}

필드 관련하여 자세한 내용은 아래 URL 참고

이름없음이(가) 3년 이상 전에 변경 · 10 revisions

클립보드 이미지 추가 (최대 크기: 97.7 MB)