Skip to main content

Wallet-only Python client for the Kuest relayer

Project description

Kuest
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.3.tar.gz (10.8 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.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.3.tar.gz
Algorithm Hash digest
SHA256 f9748144ab49d7e25bc659b304a330579cc3f0d91e3df537b8d8a0e97a89729b
MD5 d9131b0534543ff36642a295130ef46e
BLAKE2b-256 6efa1830bf1391cc953c102e7ea303dd6ceedf8621cf7c116c04bdb9eec27412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b857ba4565da06b92dabb4c6b390bfd2b553d03fd3cc98d5cc1c7ddb22a3ed0
MD5 3c6640aa65cac55f766f490538eaedb6
BLAKE2b-256 a418abe42296b2b04e9e2803f9e4631a268557d671eb9797b95451e67ff20eb3

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