githubEdit

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 arbundlesarrow-up-right. These data items can then be submitted to an ANS-104arrow-up-right compatible bundler.

Argument
Type
Description

dataItems

An array of data items to sign

circle-info

Note: This function requires the SIGN_TRANSACTION permission.

circle-exclamation
circle-exclamation

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?