Skip to content

Latest commit

 

History

History
106 lines (73 loc) · 3.39 KB

README.md

File metadata and controls

106 lines (73 loc) · 3.39 KB


Fontana

fontana.boxfish.studio

A simple dashboard to manage Solana SPL tokens


Features

  • Create, mint, and transfer SPL tokens
  • Mainnet and devnet support
  • Configurable RPCs
  • Compatible with Phantom, Solflare, Torus, Sollet, Glow and Slope wallets
  • 2 different operation modes: wallet-based and server-based

Using the program

Wallet mode

Creation, minting and transfer of tokens will be performed by the connected wallet account.
The displayed SPL tokens will be the ones created by the wallet account, plus the ones available in server mode.
This mode is operational if a wallet is connected.

Server mode

Creation, minting and transfer of tokens are performed by an account configured in the server.
New created tokens will be stored in a dedicated db for persistence.
The displayed SPL tokens will be those in the application config file, plus the SPL tokens found in the db.
This mode is operational when there is no wallet connected.

Please note, when using Server mode in our Production deploy in Mainnet, the creation of new tokens is not enabled.

Run

Clone the repo, and run the development server:

yarn dev 

The app will open at http://localhost:3000.

Configuration

The app needs the following environment variables:

 NEXT_PUBLIC_RPC_API_DEVNET = Url of your preferred devnet RPC
 NEXT_PUBLIC_RPC_API_MAINNET = Url of your preferred mainnet RPC
 NEXT_PUBLIC_DATABASE_URL = Url of your mongodb cluster (for data persistance)

Then additionally, if you want to configure the app to manage certain tokens by default, you need to configure them in the config file and add the corresponding environment variables.

const config: Config[] = [
  {
    keypair: "WALLET_1",
    owner: "Token owner public account",
    token: "Token mint account",
    network: "Devnet" or "Mainnet",
  }
];

Which will require for a new environment variable NEXT_PUBLIC_WALLET_1 corresponding to the WALLET_1 keypair.

 NEXT_PUBLIC_WALLET_1 = [Private key for token owner account]

You will need to add as many new environment variables as wallet ids are used in your configuration file.

License

Apache 2.0 © Boxfish Studio