Batch Sign DataItem

Wander Injected API batchSignDataItem() function

The batchSignDataItem() function allows you to create and sign an array of data item objects, compatible with arbundles. These data items can then be submitted to an ANS-104 compatible bundler.

Argument
Type
Description

dataItems

An array of data items to sign

Note: This function requires the SIGN_TRANSACTION permission.

Data item

This function requires valid data item objects, like so:

export interface DataItem[] {
  data: string | Uint8Array;
  target?: string;
  anchor?: string;
  tags?: {
    name: string;
    value: string;
  }[];
}

Example usage

Last updated

Was this helpful?