Get an unsigned transaction from a buffer or hex string
The buffer or hex string to get the transaction from string or Uint8Array
string
Uint8Array
The chain alias to get the transaction from "P" | "X" | "C"
"P" | "X" | "C"
An unsigned transaction UnsignedTx
import { getUnsignedTxFromBytes } from "@avalanche-sdk/client/utils";const unsignedTx = getUnsignedTxFromBytes("0x1234567890abcdef", "P"); Copy
import { getUnsignedTxFromBytes } from "@avalanche-sdk/client/utils";const unsignedTx = getUnsignedTxFromBytes("0x1234567890abcdef", "P");
Get an unsigned transaction from a buffer or hex string