TBUSD Escrow SDK
Trustless escrow API for crypto payments. Programmatic smart contract escrow on Base blockchain.
Installation
pip install tbusd-escrow
Quick Start
from tbusd_escrow import EscrowClient, ReleaseType
# Initialize client with your private key
client = EscrowClient(private_key="0x...")
# Create an escrow for $100
escrow = client.create_escrow(
beneficiary="0xRecipientAddress",
amount=100.0,
release_type=ReleaseType.MUTUAL
)
print(f"Escrow created: {escrow.address}")
# Fund the escrow
client.fund_escrow(escrow.address, 100.0)
# Check status
print(f"Status: {escrow.status}") # "funded"
# Release funds when satisfied
escrow.release()
Features
- Create escrows with flexible release types (mutual, buyer-protected, seller-protected, time-locked)
- Arbitration support (optional or required)
- Auto-release/cancel with timestamps
- Query escrows by depositor or beneficiary
- Full contract interaction (fund, release, cancel)
Release Types
from tbusd_escrow import ReleaseType
ReleaseType.MUTUAL # Both parties must agree
ReleaseType.BUYER_PROTECTED # Buyer can release, seller needs arbitrator
ReleaseType.SELLER_PROTECTED # Seller can release, buyer needs arbitrator
ReleaseType.TIME_LOCKED # Auto-release after specified time
Read-Only Mode
# No private key = read-only mode
client = EscrowClient()
# Query any escrow
escrow = client.get_escrow("0xEscrowAddress")
print(escrow.to_dict())
Links
- Website: https://tbusd.io/escrow/
- API Docs: https://tbusd.io/escrow/developers
- npm SDK: https://www.npmjs.com/package/@tbusd/escrow-sdk
- MCP Server: https://www.npmjs.com/package/@tbusd/escrow-mcp
Contract Addresses (Base Mainnet)
- Factory:
0x1fFA195A86d7E7872EBC2D1d24899addD3f1eB8c - TBUSD Token:
0x0d02E2E2a7ADaF2372ca0C69845c8b159A24a595
License
MIT
Metadata
Release files for tbusd-escrow 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tbusd_escrow-0.1.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tbusd_escrow-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / tbusd_escrow-0.1.0.tar.gz
| Download URL | tbusd_escrow-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fec82f6e29521165478bc57f6d3004713a11c04843e1a05d87743d3581de9231
|
|
BLAKE2b-256 checksum How to use checksums |
040b9b1a5356c93cd8e923b005b151f53951a6f71e1c9e54fd0dab7988477fb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / tbusd_escrow-0.1.0-py3-none-any.whl
| Download URL | tbusd_escrow-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75e84416d3fcc25712eae81c82983decb1b5524a62da10c5289c9635736b54ac
|
|
BLAKE2b-256 checksum How to use checksums |
258c726874d0779a032e6541ffc6cb2b3e893f26e7874dce5e8aee7acfda0c08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|