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

# SVM Transaction Fees & Send Routes

> Inspect route options and fee breakdowns for Solana swaps before submitting them.

## Fee Parameters

Solana transactions support two types of fees:

### Priority Fees (`prioFees`)

Priority fees are paid to validators to prioritize your transaction in the block.

| Property | Type | Default | Description |
| - | - | - | - |
| `prioFees` | string | `"0"` | Amount in lamports to pay as priority fees |

**Example:**

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   prioFees: "100000", // 0.0001 SOL in lamports
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     prioFees: "100000", // 0.0001 SOL in lamports
>   }),
> });
> ```

**Notes:**

* Higher priority fees increase the likelihood of faster inclusion
* Paid regardless of transaction success or failure
* Optional - defaults to `"0"` if not specified

### Bribe Fees (`bribeFees`)

Bribe fees (also called MEV tips) are paid to MEV protection providers (e.g., Jito) to include your transaction in their bundles.

| Property | Type | Minimum | Description |
| - | - | - | - |
| `bribeFees` | string | `"1000000"` | Amount in lamports to pay as bribe/tip fees |

**Example:**

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   sendRoute: "Antimev",
>   prioFees: "100000",
>   bribeFees: "1000000", // 0.001 SOL (minimum)
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     sendRoute: "Antimev",
>     prioFees: "100000",
>     bribeFees: "1000000", // 0.001 SOL (minimum)
>   }),
> });
> ```

**Notes:**

* Required for `PublicWithNonce`, `Antimev`, and `AntimevWithNonce` routes
* Minimum value is **1,000,000 lamports** (0.001 SOL)
* Provides MEV protection by routing through specialized providers
* Only paid if the transaction lands successfully (for revert-protected routes)

## Send Routes

The `sendRoute` parameter determines how your transaction is submitted to the network.

| Route | Default | Requires bribeFees | Requires nonceAccount | Description |
| - | - | - | - | - |
| `Public` | ✅ Yes | ❌ No | ❌ No | Standard RPC submission only |
| `PublicWithNonce` | ❌ No | ✅ Yes | ✅ Yes | RPC + all MEV providers with tip |
| `Antimev` | ❌ No | ✅ Yes | ❌ No | Revert-protected MEV providers only |
| `AntimevWithNonce` | ❌ No | ✅ Yes | ✅ Yes | All MEV providers (revert-protected + others) |

The routes that require a `nonceAccount` need a durable nonce account you own. Build one with [Create Nonce Account Transaction](https://docs.chainworks.org/svm/transactions.md#create-nonce-account-transaction), sign it, and submit it before using its address here.

### `Public` (Default)

The simplest route - sends your transaction through the standard public RPC only.

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   sendRoute: "Public",
>   prioFees: "100000",
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     sendRoute: "Public",
>     prioFees: "100000",
>   }),
> });
> ```

### `PublicWithNonce`

Sends through both public RPC and all MEV providers with a tip.

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   sendRoute: "PublicWithNonce",
>   prioFees: "100000",
>   bribeFees: "1000000",
>   nonceAccount: "YourNonceAccountPublicKey",
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     sendRoute: "PublicWithNonce",
>     prioFees: "100000",
>     bribeFees: "1000000",
>     nonceAccount: "YourNonceAccountPublicKey",
>   }),
> });
> ```

### `Antimev`

Sends exclusively through revert-protected MEV providers (e.g., Jito bundles).

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   sendRoute: "Antimev",
>   prioFees: "100000",
>   bribeFees: "1000000",
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     sendRoute: "Antimev",
>     prioFees: "100000",
>     bribeFees: "1000000",
>   }),
> });
> ```

**Best for:** High-value swaps where you want MEV protection and bribe fees only paid on success.

### `AntimevWithNonce`

Sends through all MEV providers (both revert-protected and non-revert-protected).

> [tab] Socket.IO
>
> ```typescript theme={null}
> socket.emit("/svm/buy/transaction", {
>   chain: "sol",
>   token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>   swapMode: "ExactIn",
>   amountIn: "1000000000",
>   wallet: "YourSolanaWalletPublicKey",
>   sendRoute: "AntimevWithNonce",
>   prioFees: "100000",
>   bribeFees: "1000000",
>   nonceAccount: "YourNonceAccountPublicKey",
> });
> ```

> [tab] HTTP
>
> ```typescript theme={null}
> await fetch("https://api.chainworks.co/svm/buy/transaction", {
>   method: "POST",
>   headers: {
>     "Content-Type": "application/json",
>     Authorization: CHAINWORKS_API_AUTH_TOKEN,
>   },
>   body: JSON.stringify({
>     chain: "sol",
>     token: "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
>     swapMode: "ExactIn",
>     amountIn: "1000000000",
>     wallet: "YourSolanaWalletPublicKey",
>     sendRoute: "AntimevWithNonce",
>     prioFees: "100000",
>     bribeFees: "1000000",
>     nonceAccount: "YourNonceAccountPublicKey",
>   }),
> });
> ```

**Best for:** Maximizing MEV protection coverage across all providers.


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