IPN Python 3.9+ Library
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipnpy-0.0.1.tar.gz
(9.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ipnpy-0.0.1-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file ipnpy-0.0.1.tar.gz.
File metadata
- Download URL: ipnpy-0.0.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e5e4b0761df2f997c2e9e00d6e33d5d9698141f32662e85c8c53899c403395e
|
|
| MD5 |
0581a26d57387cddc0f9e7549f0bad4d
|
|
| BLAKE2b-256 |
9f657452afe70261f0f83509714372c9605b6032df873e551ce55b17bf874bc4
|
File details
Details for the file ipnpy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ipnpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853e5472e3c50d3a1a045c606f94e52a0d2e17897584f13c989ed625214a2f00
|
|
| MD5 |
37e6e4b1c5d8c11ef506bd7892e7a582
|
|
| BLAKE2b-256 |
ee9331525d45b12567448b7a6b926f299826ff2a1bf386acefab5a7cc6b0af4d
|