# 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: 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:

```
GET https://circular-protocol.gitbook.io/saturn-wallet-user-guide/saturn-wallet-sdk/quick-start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
