Skip to content

This code is client code to mint token with 1.5% tax and withdraw all tax tokens.

Notifications You must be signed in to change notification settings

AngouNin/Client_Mint_And_Withdraw_Tax_Hotwing_Token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mint and Withdraw 1.5% Tax Spl 2022 token.

Setup

Download Node.js. Run this followed commands:

# Just be sure that you've got ts-node on you system
npm install -g ts-node

# Install dependencies (only for first time)
npm i

# Mint Token 2022 with 1.5% tax fee
npx ts-node mint.ts

# Withdraw Fee Token
npx ts-node withdraw.ts

Process

1. First you have to set payerWallet.json.

We mint our token 2022 with 1.5% tax fee through this wallet.

2. Please install node_module and typescript.

  • install node.
  • npm install -g ts-node

3. Please run mint.ts file with "npx ts-node mint.ts".

We can mint Token 2022 with 1.5% tax fee.

4. Please transfer some token to other wallet.

You can check the balances of source wallet and destination wallet. If you send 2000 tokens to destination wallet.

                                    before        after
    source wallet balance             X          X-2000
    destination wallet balance        Y          Y+1970
    Tax (Fee 1.5%)                                 30

5. Please run withdraw.ts file with "npx ts-node withdraw.ts"

You can withdraw all tax tokens about your token account.

                                    before        after
    source wallet balance           X-2000      X-2000+30  

Thanks.

About

This code is client code to mint token with 1.5% tax and withdraw all tax tokens.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published