프로젝트

일반

사용자정보

RefundReward » 이력 » 개정판 7

개정판 6 (이름없음, 2021/06/04 04:56) → 개정판 7/10 (이름없음, 2021/06/10 05:14)

h2. RefundReward 

 * 리워드를 환불합니다. 

 *RewardRequest (param)* 

 |_. field |_. type |_. description |_. note | 
 | did | String |   |   | 
 | command | String | 요청에 대한 Command 종류 | 값: refund   | 
 | dueTo | String |   |   | 

 *RewardResponse* 

 |_. field |_. type |_. description |_. note | 
 | amount | Int! |   |   | 
 | command | String |   | 값: refund   | 
 | nonce | Int! |   |   | 
 | owner | String |   |   | 
 | spent | Boolean! |   |   | 
 | tokenId | String |   |   | 

 --- 

 *Request Example* 

 <pre><code class="java"> 
 mutation { 
     refundReward(param:{ 
         command : "refund"  
         did : "ReKxejmhGsKyvmEaZtTu6T"  
         dueTo : "proposal=refund:orPxmv15e2oSPufT3Tm6SdSoVmgWQedrn8nPRqRUTCDsFC63pXu66nazMP2M7FFJnvFzqs5xMqySWrsGhjSrhHSC3D45w3zxZpjpvn9KFrguLq28Z"  
     }) { 
         amount 
         nonce 
         owner 
         spent 
         tokenId 
     } 
 } 
 </code></pre> 

 *Response Example* 

 <pre><code class="java"> 
 { 
     "data": { 
         "refundReward": { 
             "owner": "ReKxejmhGsKyvmEaZtTu6T", 
             "amount": 100, 
             "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERvAnZxmHGZRSMcWkq3bMCREJNYPz2pevaUZkhTHXsWBfFprji74GCJhpVUcko5B6YZ3icM1EXvbgdcppZFpVm2DWy6qEuG", 
             "spent": false, 
             "nonce": 0 
         } 
     } 
 } 
 </code></pre> 

 --- 

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

 * "UNO.Cranberry Benefit ChainCode":https://snplab.synology.me/confluence/display/CBU/Benefit+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)