Skip to main content

ChainSettle-SDK

ChainSettle-SDK The ChainSettle SDK is a Python package designed to facilitate interactions with the ChainSettle API, enabling developers to manage off-chain settlement attestations and monitor their on-chain statuses seamlessly.

Features

Initiate settlement attestations across various types (e.g., Plaid, PayPal).

Poll settlement status until reaching a terminal state.

Retrieve detailed settlement information.

Simulate signing processes for specific settlement types.

Manage validators and store salts associated with settlements.

Installation

Ensure you have Python 3.7 or higher installed and either pip or uv package manager. Then, clone the repository:

git clone https://github.com/BrandynHamilton/chainsettle-sdk.git
cd chainsettle-
pip install uv # Only if not already installed
uv pip install -e .

Usage

Here's a basic example of how to use the SDK:

from chainsettle_sdk import ChainSettleService

# Initialize the service
chainsettle = ChainSettleService()

# Initiate a settlement attestation
response = chainsettle.initiate_attestation(
    settlement_id="unique_settlement_id",
    settlement_type="plaid",
    network="base",
    user_email="user@example.com",
    amount=10000,
    recipient_email="recipient@example.com",
    counterparty="0xCounterpartyAddress",
    metadata="Optional metadata"
)

print("Settlement initiated:", response)

For a more comprehensive example, refer to the main.py script included in the repository.

Configuration

The SDK relies on a configuration module to manage settings such as API URLs and supported networks. Ensure that the chainsettle_sdk/config.py file is properly configured with the necessary parameters.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your enhancements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for chainsettle-sdk 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chainsettle-sdk 0.1.4
File Size Uploaded
chainsettle_sdk-0.1.4.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chainsettle-sdk 0.1.4
File Interpreter ABI Platform
chainsettle_sdk-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / chainsettle_sdk-0.1.4.tar.gz

Download URL chainsettle_sdk-0.1.4.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5015b8559bb8be8fbebdddbd6b250a6208fb7f8e34d72f609cac923aca490275
BLAKE2b-256 checksum
How to use checksums
12ab64190c3a0fc0383d0eedea041a818bfee7ea45c3d39fd43faa3ae14e9bcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / chainsettle_sdk-0.1.4-py3-none-any.whl

Download URL chainsettle_sdk-0.1.4-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c82cccdef696327ab2825183857a927bfbb76ebc77d13974d61aad7600d367b6
BLAKE2b-256 checksum
How to use checksums
ebba0a2eb7c377e9cd4098aafc25d31d863f8e8b383bd7be5f5497c4da0a10e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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