Skip to content

Instantly share code, notes, and snippets.

@alexzofa
alexzofa / bundle.ts
Last active September 17, 2021 23:09
sample code to use bundle for uploading 0-n.png in the ./assets folder to Arweave
import Arweave from "arweave";
import {
bundleAndSignData,
createData,
ArweaveSigner,
DataItem,
} from "arbundles";
import { JWKInterface } from "arweave/node/lib/wallet";
import fs from "fs";