Skip to content

A CLI tool for verifying the final image of a day on BasePaint.

License

Notifications You must be signed in to change notification settings

BasePaint/bpverify-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BasePaint Verify CLI Tool

BasePaint Verify is a command-line tool for generating and verifying images from a specific day on BasePaint. It fetches paint events from the blockchain, processes them, and creates a PNG image representing the final state of the BasePaint canvas.

Prerequisites

Before you begin, ensure you have the following installed:

  • Go 1.16 or later (Easiest way to install Go is to use Webi)
  • Access to a Base RPC endpoint (Alchemy, Infura, etc)

Installation

go install github.com/BasePaint/bpverify-cli@latest

Usage

The basic syntax for using the tool is:

bpverify [flags]

Flags

  • -r, --rpc: RPC URL for the Base node (required)
  • -d, --day: BasePaint Day to verify (required)
  • -o, --output: Path to save the generated image (defaults to Desktop)

Example

To generate an image for day 5 of BasePaint:

bpverify -r https://base-mainnet.g.alchemy.com/v2/API_KEY -d 5

Configuration

The tool automatically fetches the configuration (theme, color palette, canvas size) for each day from the BasePaint API. No additional configuration is required.

Troubleshooting

If you encounter any issues:

  1. Ensure you have a valid RPC URL for a Base node.
  2. Check that the specified day is valid.
  3. Verify that you have write permissions in the directory where you're saving the output image.

License

This project is licensed under the MIT License

About

A CLI tool for verifying the final image of a day on BasePaint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages