프로젝트

일반

사용자정보

Actions

ClaimReward » 이력 » 개정판 4

« 뒤로 | 개정판 4/9 (비교(diff)) | 다음 »
이름없음, 2021/06/04 02:01


ClaimReward

  • 리워드를 요청합니다

RewardRequest(param)

field type description note
did String    
command String 요청에 대한 Command 종류  
dueTo String    

RewardResponse

field type description note
amount Int!    
command String    
nonce Int!    
owner String    
spent Boolean!    
tokenId String    

Request Example

mutation {
    claimReward(param: {
        did: "KyXsH8RypaGBXuYbmUczZ7" 
        dueTo: "ticket=claim:orPxmv15e2oSPuvTht3fYmkdE2BWAU78DX2axDwRGVby9vSsDLkc2ojQeibK6SHdckDNrNFbhTHzdA5qA9c94kLSV6JeibENNgCvzPXboVKr4MZaS" 
        command: "claim" 
    }) {
        amount
        command
        nonce
        owner
        spent
        tokenId
    }
}

Response Example

{
    "data": {
        "claimReward": {
            "owner": "KyXsH8RypaGBXuYbmUczZ7",
            "amount": 2,
            "tokenId": "Gjk8x4CWuN9XcZeW3ivXNETeFgSFCDr2V7sAtRJMJqRdJjMbugx2PgvhxTaMnryvqkr1kWEbtLg1dydf84mxXyxKt5JDQ5yJZ7Qkkvm2SwcMnNqroBHS",
            "spent": false,
            "nonce": 0,
            "command": "claim" 
        }
    }
}

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

이름없음이(가) 약 4년 전에 변경 · 4 revisions

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