Batch Sign DataItem
ArConnect 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.
dataItems
An array of data items to sign
Note: This function requires the SIGN_TRANSACTION
permission.
Warning: This function is designed to sign multiple small data items. There is a limit of 200kb total for the function. Please ensure that the combined size of all data items does not exceed this limit.
Warning: The function returns an array of buffers of the signed data items. You'll need to manually load them into an arbundles
DataItem
instance as seen in the example usage.
Data item
This function requires valid data item objects, like so:
Example usage
Last updated