# SolanaTransaction | @account-kit/react

> We wanted to make sure that this will be using the same useMutation that the useSendUserOperation does. We are going to flatten it to make sure that we are abstracting it, and that we have the flattened version here for readability.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [account-kit/react/src/hooks/useSolanaTransaction.ts:64](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useSolanaTransaction.ts#L64)

We wanted to make sure that this will be using the same useMutation that the
useSendUserOperation does.
We are going to flatten it to make sure that we are abstracting it, and that we have
the flattened version here for readability.

## See

- [useSendUserOperation](../functions/useSendUserOperation)
- [TanStack Query useMutation](https://tanstack.com/query/v5/docs/framework/react/reference/useMutation)

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="connection" /> `connection`
      </td>

      <td>
        `null` | `Connection`
      </td>

      <td>
        The solana connection used to send the transaction
      </td>
    </tr>

    <tr>
      <td>
        <a id="data" /> `data`
      </td>

      <td>
        | `void` | \{ `hash`: `string`; }
      </td>

      <td>
        The result of the transaction
      </td>
    </tr>

    <tr>
      <td>
        <a id="error" /> `error`
      </td>

      <td>
        `null` | `Error`
      </td>

      <td>
        The error that occurred
      </td>
    </tr>

    <tr>
      <td>
        <a id="ispending" /> `isPending`
      </td>

      <td>
        `boolean`
      </td>

      <td>
        Is the use sending a transaction
      </td>
    </tr>

    <tr>
      <td>
        <a id="signer" /> `signer`
      </td>

      <td>
        `null` | `SolanaSigner`
      </td>

      <td>
        The solana signer used to send the transaction
      </td>
    </tr>

  </tbody>
</table>

## Methods

### reset()

```ts
reset(): void;
```

Defined in: [account-kit/react/src/hooks/useSolanaTransaction.ts:75](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useSolanaTransaction.ts#L75)

#### Returns

`void`

---

### sendTransaction()

```ts
sendTransaction(params): void;
```

Defined in: [account-kit/react/src/hooks/useSolanaTransaction.ts:77](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useSolanaTransaction.ts#L77)

Send the transaction

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        `SolanaTransactionParams`
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`void`

---

### sendTransactionAsync()

```ts
sendTransactionAsync(params): Promise<{
  hash: string;
}>;
```

Defined in: [account-kit/react/src/hooks/useSolanaTransaction.ts:79](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useSolanaTransaction.ts#L79)

Send the transaction asynchronously

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        `SolanaTransactionParams`
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`Promise`\<\{
`hash`: `string`;
}>