Skip to content

Add interaction scripts and token utilities  #514

Description

@bhenzdev

This update adds scripts and utility functions to interact with the Solantra Coin smart contract.

New features included:

  • /scripts/deploy.js → Script to deploy the Solantra Coin contract on Solana
  • /scripts/mint.js → Mint new tokens to a wallet
  • /scripts/transfer.js → Transfer tokens between wallets
  • /scripts/balance.js → Check token balance of any wallet
  • /utils → Helper functions for easier blockchain interaction

Instructions:

  1. Install Node.js and Solana CLI
  2. Run npm install in the project root
  3. Update config.js with your wallet key and RPC endpoint
  4. Execute scripts with node scripts/<script_name>.js

Notes:

  • Scripts are designed for testing on Solana devnet
  • Mainnet deployment requires careful auditing
  • Future updates will include staking and token reward functions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions