Redeem Wallet Amount

This API allows you to redeem wallet balances into another wallet


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/creators
GRAPHQLstringMUTATION
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokencreator token

Request

mutation {
  redeem_wallet_amount(dest_wallet_id: "6Qq7ERSHTZGnPpWarzbf1ZU9AMTqJgdj7WA16eSRiyZ4", amount: 0.5) {
    message
  }
}

Request Parameters

FieldsTypeDescriptionRequired
dest_wallet_idstringpublic address of the wallet
amountfloatamount to redeem

Success

{
    "data": {
        "redeem_wallet_amount": {
            "message": "redeemed successfully"
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["redeem_wallet_amount"]
        }
    ],
    "data": {
        "redeem_wallet_amount": null
    }
}