Retrieve Wallet

The GetWallet method retrieves the contents of a wallet for a specified address, as follows:

var Blockchain =0x714d2ac07a826b66ac56752eebd7c77b58d2ee842e523d913fd0ef06e6bdfcae’;
var Address = ‘0x...’;
Circular.GetWallet(Blockchain, Address).then(data => { 
// do something with the wallet data in JSON format }

Output

For an exchange integration, the most relevant information is the assets array, particularly the CIRX asset.

{
  "Result": 200, // Get Wallet success
  "Response": {
    "Version": "1.0.1", // wallet version
    "Address": "e2e86db8f4...bdf2", // wallet address
    "DateCreation": "2023:07:22-17:55:39", // date of wallet creation
    "Nonce": 35, // wallet nonce
    "PublicKey": "04c872bc9fcc6...b7e6f33ac", // wallet public key
    "Assets": [ // list of assets
      {
        "Address": "",
        "Amount": "9980566.183",
        "Description": "Circular Coin",
        "EnableSwap": 0,
        "Name": "CIRX", // CIRX ASSET
        "Price": 1,
        "Royalties": 0,
        "Type": "C_TYPE_COIN",
        "URL": "",
        "URLType": ""
      },
      {
        "Address": "e2e86db8f...5984bdf2",
        "Amount": "10",
        "Blockchain": "8a20baa...dc5ad72b2",
        "Description": "TestNFT",
        "EnableSwap": 1,
        "Name": "NFT2",
        "Price": 1000,
        "Royalties": 0,
        "Type": "CRC_NFT_0223",
        "URL": "https://circularlabs.io/Blog/Article1.jpg",
        "URLType": "Digital Media"
      }
      // Additional assets can be added here
    ],
    "Contracts": { // Smart Contracts Data
      "ContractData": [
        {
          "Address": "d62863c0...2569",
          "Data": "7b22416464726...73223a7b7d7d"
        }
        // Additional contract data can be added here
      ]
    },
    "Domains": [ // Domains registered at this address
      {
        "AutoRenew": "0",
        "Expiration": "2025:04:08-20:48:28",
        "Name": "123"
      }
      // Additional domains can be added here
    ],
    "Vouchers": [] // vouchers list
  }
}

Last updated