Skip to content

ax-x2/wraptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wraptor

a lightweight rust command-line tool to wrap and unwrap sol into wsol on the solana blockchain.

install

git clone https://github.com/ax-x2/wraptor.git
cd wraptor
cargo build --release

configuration

create a .env file in the project root:

SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
SOLANA_PRIVATE_KEY=[1,2,3,4,...,64] # or base58 string

usage

wrap 0.5 sol:

./target/release/wraptor wrap 0.5

unwrap all wsol:

./target/release/wraptor unwrap

cli flags override .env:

./target/release/wraptor \
  --rpc https://api.devnet.solana.com \
  --private-key '[12,34,...,99]' \
  wrap 1

About

a lightweight rust cli to wrap and unwrap sol into wsol on the solana blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages