> For the complete documentation index, see [llms.txt](https://circular-protocol.gitbook.io/cex-integration-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://circular-protocol.gitbook.io/cex-integration-guide/local-calls/retrieve-wallet.md).

# Retrieve Wallet

The <mark style="color:purple;">**GetWallet**</mark> method retrieves the contents of a wallet for a specified address, as follows:

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

### Output

{% hint style="warning" %}
For an exchange integration, the most relevant information is the assets array, particularly the CIRX asset.
{% endhint %}

```json
{
  "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
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://circular-protocol.gitbook.io/cex-integration-guide/local-calls/retrieve-wallet.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
