Get a 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"
A array with the transaction Common.Transaction and credentials []
import { getTxFromBytes } from "@avalanche-sdk/client/utils";const [tx, credentials] = getTxFromBytes("0x1234567890abcdef", "P"); Copy
import { getTxFromBytes } from "@avalanche-sdk/client/utils";const [tx, credentials] = getTxFromBytes("0x1234567890abcdef", "P");
Get a transaction from a buffer or hex string