Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 945 Bytes

File metadata and controls

30 lines (20 loc) · 945 Bytes

Preview

Image upload API for Wordcel DApp

This is an API that uploads user images to the permaweb using Bundlr.

Install all the dependencies using:

yarn

Development

Create a .env file in the directory and fill it with a Solana keypair:

BUNDLR_PRIVATE_KEY=[keypair]

Run this command to start the server

yarn dev

Note: this script authenticates all requests using message signature and checks whether the public key is a Wordcel user. To disable the check, comment the code from line 50-67 in https://github.com/Wordcel/wordcel-img-api/blob/master/src/upload.ts#L50

You will need to fund the wallet you provide in the env file with some SOL to fund the uploads using Bundlr.

Bundlr is a service that enables multichain uploads to the Arweave network.