> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vaults.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Transactions

> Ready-to-sign transaction payloads for deposits, redemptions, and reward claims.

Generates ready-to-sign transaction calldata for any supported vault action. Pass the output directly to your wallet provider — no ABI encoding required.

## Typical flow

1. **Check what the user can do**

   Call `GET /v2/transactions/context/{userAddress}/{network}/{vaultId}` to fetch the user's balances, limits, supported actions, required steps, and rewards context for that vault.

2. **Build the transaction payload**

   Call `GET /v2/transactions/{action}/{userAddress}/{network}/{vaultId}` with the action you want to prepare. Include `assetAddress` and either `amount` for a specific amount or `all=true` for a full redeem-style action.

3. **Send the returned transaction with the user's wallet**

   The response includes the target address, calldata, and value. You do not need to encode the vault contract call yourself.

```bash theme={null}
curl "https://api.vaults.fyi/v2/transactions/deposit/0xUSER/base/0xVAULT?assetAddress=0xASSET&amount=1000000" \
  -H "x-api-key: $VAULTS_FYI_API_KEY"
```

| Capability | How to call | Required inputs |
| - | - | - |
| Check available vault actions | [`GET /v2/transactions/context/{userAddress}/{network}/{vaultId}`](https://docs.vaults.fyi/api-reference/transactions/get-transaction-context) | Path: `userAddress`, `network`, `vaultId` |
| Build deposit, redeem, request, or claim calldata | [`GET /v2/transactions/{action}/{userAddress}/{network}/{vaultId}`](https://docs.vaults.fyi/api-reference/transactions/get-transaction-payload) | Path: `action`, `userAddress`, `network`, `vaultId`. Query: `assetAddress`, plus `amount` or `all=true` when the action requires an amount |
| Check claimable rewards | [`GET /v2/transactions/rewards/context/{userAddress}`](https://docs.vaults.fyi/api-reference/transactions/get-rewards-context) | Path: `userAddress` |
| Build rewards claim calldata | [`GET /v2/transactions/rewards/claim/{userAddress}`](https://docs.vaults.fyi/api-reference/transactions/claim-rewards) | Path: `userAddress`. Query: `claimIds` |
| Add transaction attribution | [`GET /v2/transactions/suffix/{userAddress}/{vaultId}`](https://docs.vaults.fyi/api-reference/transactions/get-transaction-suffix) | Path: `userAddress`, `vaultId` |

## Related Alpha and Beta endpoints

Alpha and Beta transaction endpoints extend the same wallet-action pattern to newer surfaces. Use them when your product needs these flows before they are promoted to stable V2.

| Capability | How to call | Status |
| - | - | - |
| Build a ready-to-sign Solana/SVM transaction | [`GET /beta/svm/transactions/{action}/{userAddress}/{vaultAddress}`](https://docs.vaults.fyi/api-reference/beta#solana-vaults) | Beta |
| Check Solana/SVM balances and limits before building a transaction | [`GET /beta/svm/transactions/context/{userAddress}/{vaultAddress}`](https://docs.vaults.fyi/api-reference/beta#solana-vaults) | Beta |
| Build a ready-to-sign borrow market transaction | [`GET /beta/borrow/markets/transactions/{action}/{userAddress}/{network}/{marketId}/{assetId}`](https://docs.vaults.fyi/api-reference/beta#borrow-markets) | Beta |
| Check borrow balances and limits before building a transaction | [`GET /beta/borrow/markets/transactions/context/{userAddress}/{network}/{marketId}/{assetId}`](https://docs.vaults.fyi/api-reference/beta#borrow-markets) | Beta |
| Build a Deep deposit or withdrawal transaction | [`GET /beta/amm/deep/deposit/{userAddress}/{network}/{vaultId}`](https://docs.vaults.fyi/api-reference/beta#the-deep) | Beta |
| Check balances and limits before building a fixed-term transaction | [`GET /beta/fixed-term/context/{userAddress}/{network}/{vaultId}`](https://docs.vaults.fyi/api-reference/beta#fixed-term-pendle) | Beta |
| Build a fixed-term transaction | [`GET /beta/fixed-term/transactions/{action}/{userAddress}/{network}/{vaultId}`](https://docs.vaults.fyi/api-reference/beta#fixed-term-pendle) | Beta |
| Quote, execute, and track cross-chain transaction intents | [`POST /alpha/transactions/intent/getQuote`](https://docs.vaults.fyi/api-reference/alpha#cross-chain-intents) | Alpha |
| Build and track CCTP bridge transactions | [`GET /alpha/transactions/cctp/transactions/{action}/{userAddress}/{srcNetwork}/{dstNetwork}`](https://docs.vaults.fyi/api-reference/alpha#cctp-bridge) | Alpha |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.