@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Interface AssetSpec

    An asset-group transfer attached to a spend: which inputs supply the asset and which outputs receive it. Encoded into the asset Packet alongside the emulator packet in the same OP_RETURN extension.

    interface AssetSpec {
        assetId: string | Uint8Array<ArrayBufferLike>;
        inputs: { amount: number | bigint; vin: number }[];
        metadata?: { key: Uint8Array; value: Uint8Array }[];
        outputs: { amount: number | bigint; vout: number }[];
    }
    Index

    Properties

    assetId: string | Uint8Array<ArrayBufferLike>

    The asset id — serialized hex string or raw bytes.

    inputs: { amount: number | bigint; vin: number }[]

    Inputs supplying the asset (by transaction input index).

    metadata?: { key: Uint8Array; value: Uint8Array }[]

    Optional metadata key/value entries.

    outputs: { amount: number | bigint; vout: number }[]

    Outputs receiving the asset (by transaction output index).