createCustomerWallet

createCustomerWallet

This method adds a new wallet for a specific customer.

Parameters

  • customerId (string, required): The UUID of the customer.
  • wallet (object, required): The wallet object containing the wallet address and other relevant details.
  • blockchainNamespace (string, required): The blockchain namespace for the wallet. Possible values include tezos, eip155, aptos, polkadot, starknet, cosmos, solana, cardano.
  • verified (boolean, optional): Indicates if the wallet is verified.

Returns

A JSON object confirming the successful creation of the wallet.

Usage Example

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

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/customers/:customerId/wallets',
  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);
});