Creates a wallet (liability account) for a user.
Query
mutation CreateWallet($userId: ID!, $input: AccountInput!) { tenant { createWallet(userId: $userId, input: $input) { id name type currency balance } } }
Variables
{ "userId": 1, "input": { "currency": "BTC" } }
Response
{ "data": { "tenant": { "createWallet": { "balance": "-0", "currency": "BTC", "id": "1", "name": "wallet", "type": "LIABILITY" } } } }
Last updated 4 years ago
Was this helpful?