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

# prepareTransaction

> Prepare a transaction for signing.

Method on an account instance returned by [`createAccount`](/sdk-reference/rhinestone-sdk/create-account).

## Usage

```ts theme={null}
const result = await account.prepareTransaction(transaction)
```

## Parameters

<ParamField path="transaction" type="Transaction" required>
  Transaction to prepare
</ParamField>

## Returns

<ResponseField name="transaction" type="PreparedTransactionData">
  The prepared transaction data
</ResponseField>

## See also

* [signTransaction](/sdk-reference/account/transactions/sign-transaction) to sign the prepared transaction
* [submitTransaction](/sdk-reference/account/transactions/submit-transaction) to submit the signed transaction
