Git Product home page Git Product logo

arupload's Introduction

ArUpload - Arweave File Uploader

Upload files to the permaweb. Pay once, store forever.

To calculate fees based on file size, check out: Arweave Fee Calculator

Files < 250KB: 0.000061137561 AR (fixed)

0.000061 AR = $0.00183 (US$30/AR)


Use Arweave Block Explorer to view transaction history: https://viewblock.io/arweave

Usage

npm i to install packages from package.json

1. Account Initialization

a) Have an pre-existing account

If you already have an existing Arweave account, store your Arweave key file (.json file) in the root directory of the folder & rename it to key.json.

image-20220310165738727

b) Create a new account

ArUpload will automatically create an Arweave account if it doesn't detect a key.json.

After creating an account, the Arweave key file will be stored in the root folder as key.json.

Do fund your account before proceeding to the next step:

To be on the safe side, deposit 0.1 AR (=$3) to your wallet

2. Upload File

Replace "samples/image.jpg" with the file path of your file.

image-20220310165443838

3. Output

Console output should look as such:

image-20220310170216525

URL to the uploaded file is at the last line.

arupload's People

Contributors

alexc09 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.