-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
617b9e1
commit a471c4a
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 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.magiblock.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 | ||
|