Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

x402store

Upload files to permanent IPFS storage from the command line. Pay-per-use with x402 payment protocol.

Installation

# From npm (when published)
npm install -g x402store-cli

# From source
git clone https://github.com/user/x402store-cli
cd x402store-cli
npm install
npm run build
npm link

Setup

Export your Base wallet private key:

export X402_PRIVATE_KEY=0x...

Need a wallet? Create one at https://x402.storage

Usage

# Upload a file
x402store myfile.txt

# Output on success:
# Success! File stored permanently.
# URL: https://x402.storage/bafybeig...
# CID: bafybeig...

Pricing

$0.01 per upload (paid in USDC on Base).

Requirements

  • Node.js 18+
  • Base wallet with USDC balance

License

MIT