Skip to main content

SDK for ChainSettle API integrations.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chainsettle_sdk-0.1.4.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chainsettle_sdk-0.1.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file chainsettle_sdk-0.1.4.tar.gz.

File metadata

  • Download URL: chainsettle_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for chainsettle_sdk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5015b8559bb8be8fbebdddbd6b250a6208fb7f8e34d72f609cac923aca490275
MD5 47919b13ec3cd479297bc21864e88516
BLAKE2b-256 12ab64190c3a0fc0383d0eedea041a818bfee7ea45c3d39fd43faa3ae14e9bcd

See more details on using hashes here.

File details

Details for the file chainsettle_sdk-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for chainsettle_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c82cccdef696327ab2825183857a927bfbb76ebc77d13974d61aad7600d367b6
MD5 c23e3236604b405b448f37b7348cb36f
BLAKE2b-256 ebba0a2eb7c377e9cd4098aafc25d31d863f8e8b383bd7be5f5497c4da0a10e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page