Skip to content

IPNTools/ipn-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img.png


image image

A modern, easy-to-use library for interacting with the IPN, written in Python.


Key Features


  • Interaction with the IPN API.
  • Creating and managing transactions.

Installing


Python 3.9 or higher is required

To install the library, use the command

pip install ipnpy

To install the development version, do the following:

git clone https://github.com/IPNTools/ipn-py
cd ipn-py

Quick Example


Send transaction:

from ipnpy.rpc import EvmJsonRPC

provider = EvmJsonRPC('https://data-seed-prebsc-1-s2.binance.org:8545/')
transaction = provider.send_native_token(
    private_key='YOUR_PRIVATE_KEY',
    from_address='0xdB87EE96B5D2D7F5b0e9eC400240D605f870756f',
    to_address='0xdB87EE96B5D2D7F5b0e9eC400240D605f870756f',
    amount=23000,
)

print(transaction)

Add, replace and delete address in IPN:

from ipnpy.ipn import IPNTools

ipn = IPNTools(secret_key='YOUR_SECRET_KEY')
ipn.add_address('address4')
ipn.replace_addresses(addresses=['address1', 'address2', 'address3'])
ipn.delete_address('address3')

Links


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages