updateCustomerWallet

updateCustomerWallet

This method updates a specific wallet associated with a customer.

Parameters

  • id (string, required): The UUID of the wallet to be updated.
  • customerId (string, required): The UUID of the customer.
  • Body (JSON, required): The JSON object containing the wallet details to be updated.
    • wallet (string, required): The wallet address or identifier.
    • blockchainNamespace (string, nullable): The blockchain namespace associated with the wallet. Possible values: tezos, eip155, aptos, polkadot, starknet, cosmos, solana, cardano.
    • verified (boolean, nullable): Indicates whether the wallet is verified.

Returns

A JSON object confirming the successful update of the wallet.

Usage Example

const axios = require('axios');
let data = JSON.stringify({
  "wallet": "string",
  "blockchainNamespace": "tezos",
  "verified": true
});

let config = {
  method: 'patch',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/customers/:customerId/wallets/:id',
  headers: { 
    'Content-Type': 'application/json', 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});