프로젝트

일반

사용자정보

RefundReward » 이력 » 개정판 3

개정판 2 (이름없음, 2021/06/03 07:26) → 개정판 3/10 (이름없음, 2021/06/04 01:34)

h2. RefundReward 

 * 리워드를 환불합니다 

 *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* 

 <pre><code class="java"> 
 mutation Querymutation { 
     
	 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>
클립보드 이미지 추가 (최대 크기: 97.7 MB)