> For the complete documentation index, see [llms.txt](https://xchainjs.gitbook.io/xchainjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xchainjs.gitbook.io/xchainjs/clients/xchain-solana/examples/prepare-transaction.md).

# Prepare transaction

Check out how you should prepare a transaction to be signed

{% embed url="<https://codesandbox.io/p/devbox/github/xchainjs/xchainjs-lib/tree/master/examples/solana?file=/transaction-prepare.ts>" %}
