Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
useTransaction – HyperGate
Skip to content

useTransaction

Hook to send a transaction.

Usage

 
import { useTransaction } from "@hyper-gate/react";
 
export function App() {
  const 
const transaction: UseTransactionReturnType<Config, number, { result: BaseTxResult<2, Transaction> & { tx_json: Transaction; }; searched_all?: boolean | undefined; id: number | string; status?: "success" | string | undefined; type: "response" | string; warning?: "load" | undefined; warnings?: ResponseWarning[] | undefined; forwarded?: boolean | undefined; api_version?: number | undefined; }>
transaction
= useTransaction({});
}

Example