프로젝트

일반

사용자정보

Actions

RefundReward

  • 리워드를 환불합니다.
refundReward(
param: RewardRequest
): RewardResponse

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

mutation {
    refundReward(param:{
        command : "refund" 
        did : "ReKxejmhGsKyvmEaZtTu6T" 
        dueTo : "proposal=refund:orPxmv15e2oSPufT3Tm6SdSoVmgWQedrn8nPRqRUTCDsFC63pXu66nazMP2M7FFJnvFzqs5xMqySWrsGhjSrhHSC3D45w3zxZpjpvn9KFrguLq28Z" 
    }) {
        amount
        nonce
        owner
        spent
        tokenId
    }
}

Response Example

{
    "data": {
        "refundReward": {
            "owner": "ReKxejmhGsKyvmEaZtTu6T",
            "amount": 100,
            "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERvAnZxmHGZRSMcWkq3bMCREJNYPz2pevaUZkhTHXsWBfFprji74GCJhpVUcko5B6YZ3icM1EXvbgdcppZFpVm2DWy6qEuG",
            "spent": false,
            "nonce": 0
        }
    }
}

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

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

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