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

# decodeTransaction()

> Decode unsigned transaction from base64 into Solana Transaction.

<CodeGroup>
  ```javascript JavaScript theme={null}
  await client.solana.decodeTransaction(unsignedTxBase64);
  ```
</CodeGroup>

## Parameters

|                                         |
| --------------------------------------- |
| **unsignedTxBase64** *string, required* |

## Result

The method returns a Solana [`Transaction`](https://solana-foundation.github.io/solana-web3.js/classes/Transaction.html) object that you can pass to [`signWithKeypairs()`](/docs/staking-sdk-solana-signwithkeypairs) .


## Related topics

- [signWithKeypairs()](/docs/staking-sdk-solana-signwithkeypairs.md)
- [Staking API reference](/reference/solana-staking-stake.md)
