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

# Advanced Features

> This page details advanced features and utilities in the Skip Go client library.

## Adding custom Cosmos messages to route execution

The `executeRoute` method accepts an `appendCosmosMsgs` parameter for custom Cosmos messages, keyed by chain ID (`Record<chainId, CosmosMsg[]>`). Despite its name, it inserts these messages **before** the existing messages in the first Cosmos transaction matching each chain ID. Custom messages execute before that transaction's route messages, so they cannot depend on their output.

```typescript theme={null}
const msg = JSON.stringify({
  fromAddress: 'cosmos1...',  // Replace with sender address
  toAddress: 'cosmos1...',    // Replace with recipient address
  amount: [{
    denom: 'uatom',           // Replace with the actual denom, e.g., 'uatom' for ATOM
    amount: '1000000'         // Replace with the actual amount (in smallest unit, e.g., micro-ATOM)
  }]
});

await executeRoute({
  route,
  userAddresses,
  appendCosmosMsgs: {
    'cosmoshub-4': [{ msgTypeUrl: '/cosmos.bank.v1beta1.MsgSend', msg }]
  }
});
```

## Use the Go Fast Transfer system

The `route` function accepts a `goFast` parameter to enable the Go Fast Transfers. Then pass this route to the `executeRoute` method to execute.

```typescript theme={null}
import { executeRoute, route } from '@skip-go/client';

const route = await route({
  goFast: true
  ...otherParams,
});

await executeRoute({
  route,
  ...otherParams,
});
```

## Add a fee payer in solana transaction

The `executeRoute` method accepts a `svmFeePayer` parameter to specify a fee payer for Solana transactions. This is useful when you want to have a different account pay the transaction fees.

```typescript theme={null}
import { Keypair } from "@solana/web3.js";
import nacl from "tweetnacl";
import bs58 from "bs58";
import { executeRoute, route } from '@skip-go/client';


const route = await route({
  // ... other parameters
});

await executeRoute({
  route,
  userAddresses,
  svmFeePayer: {
    address: 'FEE_PAYER_ADDRESS.', // Replace with the fee payer's Solana address
    signTransaction: async (dataToSign: Buffer) => {
      // this is an example the fee payer signer is using a private key
      const privateKey = "FEE_PAYER_PRIVATE_KEY";
      const keypairBytes = bs58.decode(privateKey);
      const keypair = Keypair.fromSecretKey(keypairBytes);
      return nacl.sign.detached(dataToSign, keypair.secretKey);
    },
  }
  ...otherParams,
})
```


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