Skip to content

intellygentle/MintNftOnEclipse

Repository files navigation

Guide To Minting NFT on Eclipse Testnet and Mainnet

This is a three-steps task, try to sit tight

STEP1- Install Solana CLI

use codespace or gitpod or vscode as your code environment

https://github.com/codespaces

Screenshot_20240823-210201_Chrome

sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"

Run what you see in your terminal next

expPath
solana-install update

Create a new wallet on backpack extension. Select eclipse in the option then run the next code and import the seedphrase of the wallet you just created

Note that after pasting the seedphrase it wont show on the terminal. just click on enter, enter again, confirm the address, y, then enter

solana-keygen recover 'prompt:?key=0/0' --outfile ~/.config/solana/id.json --force

for testnet

solana config set --url https://testnet.dev2.eclipsenetwork.xyz/

for mainnet

solana config set --url https://mainnetbeta-rpc.eclipse.xyz

Then continue here

solana config set --keypair ~/.config/solana/id.json

You can run solana address on the terminal to check the wallet address and note it down.

solana address

Step2- Bridge to Eclipse

git clone https://github.com/Eclipse-Laboratories-Inc/eclipse-deposit
cd eclipse-deposit

yarn install

fund a wallet with sepolia Eth 0.1 or mainnet Eth 0.0035, copy the private key and paste it in example-private-key.txt

nano example-private-key.txt 

clean the text there, input the private key of the sepolia Eth and press ctrl+x then y and enter

for testnet

node bin/cli.js -k example-private-key.txt -d yourBackPackWalletAddressForEclipse -a 0.005 --sepolia

for Mainnet

node bin/cli.js -k example-private-key.txt -d yourBackPackWalletAddressForEclipse -a 0.002 --mainnet

Depending on the network you are running you should see this hash response which means you have bridged to eclipse testnet or mainnet

hshh

Step3- Mint NFT

git clone https://github.com/intellygentle/MintNftOnEclipse.git
cd MintNftOnEclipse
nvm install --lts
nvm use --lts
npm install -g typescript
npm install -g ts-node
tsc -v
ts-node -v

Run solana config get then copy the keypair path, go to line 51 in index.ts and replace the "...blabla..."

with the keypair path you copied

solana config get
get indxts indxEdt

copy the path to pixel.png and paste into line 171 of index.ts

li171

open new terminal

wget https://dist.ipfs.tech/go-ipfs/v0.19.1/go-ipfs_v0.19.1_linux-amd64.tar.gz
tar -xvzf go-ipfs_v0.19.1_linux-amd64.tar.gz
cd go-ipfs
sudo bash install.sh
ipfs init
ipfs daemon

when you see Deamon Ready, go back to terminal

readyD

Run the code to mint NFT

ts-node index.ts
mntd

Mint on Testet vs Mint on Mainnet

go to line 49 in your index.ts file, where it says "CLUSTERS.testnet" just change it to "CLUSTERS.mainnet" to mint Nft on mainnet provided you have bridged into mainnet too

tstmain

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors