Sign DataItem
ArConnect Injected API signDataItem() function
Last updated
ArConnect Injected API signDataItem() function
Last updated
The signDataItem() function allows you to create and sign a data item object, compatible with arbundles
. These data items can then be submitted to an ANS-104 compatible bundler.
Argument | Type | Description |
---|---|---|
Note: This function requires the SIGN_TRANSACTION
permission.
Warning: The function returns a buffer of the signed data item. You'll need to manually load it into an arbundles
DataItem
instance as seen in the example usage.
This function requires a valid data item object, like so:
dataItem
The bundled data item to sign