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