API Docs
Wallets & Payment
Set Wallet Payout Address

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
}
  • clientMutationId (String) An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client.

  • 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 same clientMutationId 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)