Skip to main content

Uploading Data

The function bundlr.upload(data) uploads any arbitrary data passed to it. The transaction id returned as part of the response is used to download the data, simply create a URL with the following format[transaction_id].


For more information on how uploads are timestamped, please see Proof Of Provenance.

// Upload data
const dataToUpload = "Hello world.";
try {
const response = await bundlr.upload(dataToUpload);
console.log(`Data uploaded ==>${}`);
} catch (e) {
console.log("Error uploading file ", e);