Official Python SDK for BridgeNode — automated x402 payment auth for AI agents
Project description
bridgenode
Official Python SDK for BridgeNode — automated x402 payment auth for AI agents.
pip install bridgenode
Quick start
from bridgenode import X402Client
client = X402Client()
print(f"My address: {client.address}")
response = await client.request(messages=[
{"role": "user", "content": "Hello, who are you?"}
])
print(response["choices"][0]["message"]["content"])
How it works
- Generates an ed25519 keypair (if none provided)
- Signs each request with a UUID nonce
- Sends X-Address / X-Signature / X-Nonce headers
- Handles 402, 401, 409 responses automatically
Install from source
cd bridgenode
pip install -e .
Requirements
- Python ≥ 3.10
- httpx, pynacl, base58
License
MIT — BridgeNode (https://bridgenode.cc)
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
bridgenode-0.1.0.tar.gz
(5.6 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
File details
Details for the file bridgenode-0.1.0.tar.gz.
File metadata
- Download URL: bridgenode-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7946a6bc85e24586f0c7975d2ac7fb7428cf8459faf8b8af97eae098c9105b91
|
|
| MD5 |
176328db46317ae9e18c4f7e7cc58357
|
|
| BLAKE2b-256 |
5662c1d66fea4370d9baa8a641bdeb7f53574478fa397787a74024e37a2f37a7
|
File details
Details for the file bridgenode-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bridgenode-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021b155e7c604f2ecbcb0ce8012527d89415fec5a18cc41bf23fc889cad088e4
|
|
| MD5 |
d5dad1fad16890c1dc15b6edec8b2fe8
|
|
| BLAKE2b-256 |
ee39eebbab0469019daa71b57fd5cb06b1e336e4a32889a602a165d2dab446d1
|