cngn
Official Python SDK for the cNGN API.
Install
pip install cngn
Use pip install "cngn[wallet]" to include wallet helpers.
Async usage
import asyncio
from cngn import AsyncCNGN
async def main() -> None:
async with AsyncCNGN(
api_key="cngn_test_...",
encryption_key="...",
private_key=open("cngn_ed25519").read(),
) as client:
balances = await client.get_balance()
networks = await client.get_networks()
print(balances, networks)
asyncio.run(main())
AsyncCNGN is recommended for applications and services. Use CNGN for
synchronous code; it exposes the same methods without await.
Features
- Balances and paginated transactions
- Dedicated and temporary virtual accounts
- Bank verification and cNGN redemption
- On-chain withdrawals and address whitelisting
- Cross-network quotes and bridges
- Webhook signature verification
- Optional wallet generation and validation
account = await client.create_temporary_virtual_account(
amount=5000,
customer_email="user@example.com",
customer_name="Ada Obi",
account_name="ACME Checkout",
)
quote = await client.get_bridge_quote(
amount=250,
origin_network_id="...",
destination_network_id="...",
destination_address="0x...",
)
Manage API keys, encryption keys, Ed25519 keys, and IP allowlisting at app.cngn.co. Test and live credentials are separate.
Release files for cngn 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cngn-2.0.2.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cngn-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.6 kB
Release files / cngn-2.0.2.tar.gz
| Download URL | cngn-2.0.2.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40f08835ae52bd16e1a36a34f0c1df5b5639494eee4a2d7741c7d78637a0fb11
|
|
BLAKE2b-256 checksum How to use checksums |
9291c23926730ad4f5caaaba9a8aac7f5549de73ff9f52477d59ef8d7d2783ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.14
|
Release files / cngn-2.0.2-py3-none-any.whl
| Download URL | cngn-2.0.2-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0ff2877d2965ed05be2bea0cf9ae809d98da4e45e142327c4e92d7ce02a5121
|
|
BLAKE2b-256 checksum How to use checksums |
2025b59405e8530cbd0807cae8196b35b59fec6b3808100a7141103555c9a5ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.14
|