Set Wallet Payout Address
Set the wallet address for a specific wallet
⚠️
To run this query you need the RowId parameter. To find this one you need to first use our Get Wallet Address command.
Example
mutation MyMutation {
setWalletAddressPayoutAddress(input: { addressHash: "1abc...abc", addressId: 12345, uname: "my_username" }) {
walletAddress {
address
addressName
paymentSplitPercentage
walletId
rowId
}
}
}
Response
{
"data": {
"setWalletAddressPayoutAddress": {
"walletAddress": {
"address": "1abc...abc",
"addressName": "wallet_with_new_name",
"paymentSplitPercentage": 0,
"walletId": 12345,
"rowId": 12345
}
}
}
}
Arguments
input
(SetWalletAddressPayoutAddressInput!)
The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.
type SetWalletAddressPayoutAddressInput {
clientMutationId: String
uname: String
addressId: Int
addressHash: String
}
Type
SetWalletAddressPayoutAddressPayload
The output of our setWalletAddressPayoutAddress
mutation.
type SetWalletAddressPayoutAddressPayload {
clientMutationId: String
walletAddress: WalletAddress
query: Query
}
Fields
-
clientMutationId
(String
) The exact sameclientMutationId
that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. -
walletAddress
(WalletAddress)
type WalletAddress {
rowId: Int
walletId: Int
address: String
paymentSplitPercentage: Int
addressName: String
}
query
(Query)