Skip to main content

Wallet-only Python client for the Kuest relayer

Project description

Kuest Python Builder Relayer Client

Wallet-only Python client for the Kuest relayer.

Installation

pip install kuest-py-builder-relayer-client

Usage

import time
from py_builder_relayer_client.client import RelayClient
from py_builder_relayer_client.models import DepositWalletCall
from py_builder_signing_sdk.config import BuilderConfig, BuilderApiKeyCreds

builder_config = BuilderConfig(
    local_builder_creds=BuilderApiKeyCreds(
        key="...",
        secret="...",
        passphrase="...",
    )
)

client = RelayClient("https://relayer.example", 80002, private_key, builder_config)
wallet = client.derive_deposit_wallet()

client.deploy_deposit_wallet()
client.execute_deposit_wallet_batch(
    [DepositWalletCall(target=token, value="0", data=calldata)],
    wallet,
    str(int(time.time()) + 240),
)

Wire auth headers are generated by kuest-py-builder-signing-sdk and remain KUEST_BUILDER_*.

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

kuest_py_builder_relayer_client-2.0.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

kuest_py_builder_relayer_client-2.0.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file kuest_py_builder_relayer_client-2.0.1.tar.gz.

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b85a9a136cc33ed7cd3e40c26f25d6a25f377f303e11532174d61238e5e73077
MD5 76b8cd7e0eae0dd500d354d3a910f9df
BLAKE2b-256 4a5a891a01c41b06cbe00f3f06dd9b4ac3a57186148d82c2fe92f2b8f65adbc2

See more details on using hashes here.

File details

Details for the file kuest_py_builder_relayer_client-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9096dc41c8745e0282b970999931a3a7ad77fdb36e6d25a83c1ec7eac03d7f7
MD5 aa04adb26aa8be5dc86820e233695b49
BLAKE2b-256 710cb646dc1d70026907abf9670d2cc0d0a034a79183f7fa88b54dec6a5ca237

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