> For the complete documentation index, see [llms.txt](https://circular-protocol.gitbook.io/saturn-wallet-user-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/saturn-wallet-user-guide/saturn-wallet-sdk/quick-start.md).

# Quick Start

```javascript
// Initialize the wallet
const wallet = new SaturnWallet();

// Connect to wallet
async function connect() {
  try {
    const connection = await wallet.connect(
      "Welcome to My DApp! Please sign this message to connect."
    );
    if (connection) {
      console.log(`Connected to address: ${connection.address}`);
      console.log(`Public key: ${connection.publicKey}`);
      console.log(`Signature: ${connection.signature}`);
    }
  } catch (error) {
    console.error("Connection failed:", error.message);
  }
}

// Check connection status
function checkConnection() {
  try {
    const connected = wallet.isConnected();
    console.log(`Wallet connected: ${connected}`);
  } catch (error) {
    console.error("Connection validation failed:", error.message);
  }
}

// Send a transaction
async function sendTransaction() {
  try {
    const txResult = await wallet.sendTransaction({
      asset: "CIRX",
      amount: "1",
      toAddress: "recipient_address",
    });
    console.log(`Transaction sent: ${txResult.hash}`);
    console.log(`Block: ${txResult.block}, Status: ${txResult.status}`);
  } catch (error) {
    console.error("Transaction failed:", error.message);
  }
}

// Disconnect wallet
async function disconnect() {
  try {
    const success = await wallet.disconnect();
    if (success) {
      console.log("Wallet disconnected successfully");
    }
  } catch (error) {
    console.error("Disconnect failed:", error.message);
  }
}
```


---

# 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/saturn-wallet-user-guide/saturn-wallet-sdk/quick-start.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.
