Skip to content

Manage VITE Blockchain API via @vite.js NODE.JS package within Python script

Notifications You must be signed in to change notification settings

blacktyger/vite_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-wallet-adapter

Manage VITE Blockchain API via @vite.js NODE.JS package within Python script


Requirements

  • Node.js and npm
  • Python 3.11

Installation

  • clone the repository
  • cd vite-wallet-adapte\vitejs
  • npm install

How to use

via CLI

python vite_adapter.py [command] [args]

inside python script

from src import ViteJsAdapter

provider = ViteJsAdapter()

# Create new wallet and return dict with address and mnemonics
wallet = provider.create_wallet()

# Get the wallet balance using address and/or mnemonics
print(provider.balance(address=wallet['data']['address']))

# Get list of wallet transactions using wallet address
print(provider.transactions(address=wallet['data']['address'], page_size=10, page_index=0))

Extra Confriguration

To change Vite node address edit vitejs/provider.js file.


blacktyg3r.com | BTlabs.tech @ 2023

About

Manage VITE Blockchain API via @vite.js NODE.JS package within Python script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published