https://github.com/magicblock-labs/ephemeral-counter-ui
https://github.com/magicblock-labs/ephemeral-counter-ui
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/magicblock-labs/ephemeral-counter-ui
- Owner: magicblock-labs
- License: mit
- Created: 2024-09-19T08:59:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-01T09:10:05.000Z (about 1 year ago)
- Last Synced: 2025-07-01T17:44:18.095Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://counter-example.magicblock.app
- Size: 8.45 MB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ephemeral Counter UI
This is a React-based UI for the Ephemeral Counter program, which is part of the documentation for integrating with the Ephemeral Rollups.
## Overview
The UI demonstrates the use of Solana's ephemeral rollups with a simple counter program. It showcases an `increment` instruction that can run both on the main network and ephemeral rollup.
## Documentation
For more information, visit: [Ephemeral Rollups Documentation](https://docs.magicblock.gg/Accelerate/ephemeral_rollups).
## Getting Started
### Prerequisites
- Node.js
- npm
### Installation
1. Navigate to the `app` directory
2. Install the dependencies:
npm install
### Running the Application
To start the application, run:
npm run start
### Set a custom RPC endpoint
To set a custom RPC endpoint, you can use the `REACT_APP_MAGICBLOCK_URL` environment variable. For example for running locally:
REACT_APP_MAGICBLOCK_URL=http://localhost:8899 npm run start