SolanaTransaction

Defined in: account-kit/react/src/hooks/useSolanaTransaction.ts:64

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

Properties

PropertyTypeDescription

connection

null | Connection

The solana connection used to send the transaction

data

| void | { hash: string; }

The result of the transaction

error

null | Error

The error that occurred

isPending

boolean

Is the use sending a transaction

signer

null | SolanaSigner

The solana signer used to send the transaction

Methods

reset()

1reset(): void;

Defined in: account-kit/react/src/hooks/useSolanaTransaction.ts:75

Returns

void


sendTransaction()

1sendTransaction(params): void;

Defined in: account-kit/react/src/hooks/useSolanaTransaction.ts:77

Send the transaction

Parameters

ParameterType

params

SolanaTransactionParams

Returns

void


sendTransactionAsync()

1sendTransactionAsync(params): Promise<{
2 hash: string;
3}>;

Defined in: account-kit/react/src/hooks/useSolanaTransaction.ts:79

Send the transaction asynchronously

Parameters

ParameterType

params

SolanaTransactionParams

Returns

Promise<{ hash: string; }>