Avalanche SDK Client
    Preparing search index...

    Function getUtxoFromBytes

    • Get a Utxo from a buffer or hex string

      Parameters

      • utxoBytesOrHex: string | Uint8Array<ArrayBufferLike>

        The buffer or hex string to get the Utxo from string or Uint8Array

      • chainAlias: "X" | "P" | "C"

        The chain alias to get the Utxo from "P" | "X" | "C"

      Returns Utxo

      The Utxo Utxo

      import { getUtxoFromBytes } from "@avalanche-sdk/client/utils";

      const utxo = getUtxoFromBytes("0x1234567890abcdef", "P");