Upload data to Arweave.
data | File
: The type of data to upload.string | File
: The data to upload. Can be a file or path to a file in case of node environments.Tag[]
: Tags to be added to the transaction.UploadResponse
, Transaction
, or TurboUploadDataItemResponse
depending on whether Irys or Turbo are used or not.
UploadResponse
- Returned when Irys is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The signature used while creating the collection.number
- The timestamp of the transaction.Transaction
- Returned when Arweave is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The owner of the collection.Tag[]
- The tags of the collection.Uint8Array
- The data of the collection.string
- The signature used while creating the collection.TurboUploadDataItemResponse
- Returned when Turbo is used. It contains fields such as:
string
- The transaction ID of the collection,number
- The timestamp of the transaction,string
- The amount of Turbo Credits, in Winston Credits, spent on the upload,string
- The version number of the upload receipt returned,number
- The latest block height in which the uploaded data will be settled on Arweave,array
- A list of nodes where the data was cached while upload to Arweave is pending,array
- A list of nodes where data is made available while waiting for it to settle on Arweave,string
- The public key of the wallet used for upload,string
- The signature used while creating the collection,string
- The owner of the collection.