Skip to main content

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

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)

Source distribution for tbusd-escrow 0.1.0
File Size Uploaded
tbusd_escrow-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tbusd-escrow 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page