# Examples & Guides

This section provides complete, working examples for common use cases with the YieldFi SDK.

### Available Examples

* Complete Authentication Flow - Full wallet authentication implementation
* Vault Operations - Querying vaults and managing assets
* Transaction History - Working with transaction data
* Contract Integration - Integrating with smart contracts

### Quick Example

```typescript
import { YieldFiSDK } from "yieldfi-sdk";

// Initialize and authenticate
const sdk = await YieldFiSDK.create({ gatewayUrl: "https://gw.yield.fi" });
// ... authentication code ...

// Query vaults
const vaults = await sdk.vault.getVaults({ chainId: 1 });

// Get transactions
const transactions = await sdk.vault.getTransactions(
  { chainId: 1 },
  accessToken
);
```

### Next Steps

Browse the examples above for complete implementation guides!


---

# 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://docs.yield.fi/earn-with-yieldfi/integration-sdk/examples-and-guides.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.
