Transfer amount
Transfers an amount between one wallet to another.
Query
mutation TransferAmount($input: TransferAmountInput!) {
tenant {
transferAmount(input: $input) {
id
currency
note
amounts {
id
account {
id
name
type
currency
balance
user {
id
}
}
}
}
}
}
Variables
{
"input": {
"sender_id": 1,
"recipient_id": 2,
"amount": 10,
"note": "Donation"
}
}
Response
{
"data": {
"tenant": {
"transferAmount": {
"amounts": [
{
"account": {
"balance": "10",
"currency": "BTC",
"id": "2",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "2"
}
},
"id": "4"
},
{
"account": {
"balance": "90",
"currency": "BTC",
"id": "1",
"name": "wallet",
"type": "LIABILITY",
"user": {
"id": "1"
}
},
"id": "3"
}
],
"currency": "BTC",
"id": "2",
"note": "Donation"
}
}
}
}
Last updated
Was this helpful?