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.0.tar.gz (10.5 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.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0d7e2ea228877a30d1adc5b87ecb245317371ac8df060152284106f18c4dd43c
MD5 7c63575b083bdc58cdc91789ef97ce6e
BLAKE2b-256 2822f1a11dc87dbb6ad5faeca0aafde5abe4fc6272979cd442e0291e8ff4949a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kuest_py_builder_relayer_client-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ba47091772531f522ca02bfebfed57101936356bc81599fbaa8f666f1a077c
MD5 3dd150e673d8bf1efbbfc53f24d000b9
BLAKE2b-256 0e7a29af59d364b2b38ded9e048891be9d884508a1257fe3ae8c6c31c01fcd2d

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