Skip to main content

Goat SDK EVM wallet implementation

Project description

EVM Wallet for GOAT SDK

A Python implementation of an EVM wallet for the GOAT SDK, providing secure key management and transaction signing capabilities for Ethereum Virtual Machine compatible networks.

Installation

poetry add goat-sdk-wallet-evm

Usage

from goat_wallets.evm import evm_wallet

# Initialize wallet with private key
wallet = evm_wallet(
    private_key="${WALLET_PRIVATE_KEY}",  # Your EVM wallet private key
    rpc_url="${RPC_PROVIDER_URL}"  # Your EVM RPC endpoint
)

# Get wallet address
address = wallet.get_address()

# Get ETH balance
balance = await wallet.get_balance()

# Sign and send transaction
tx_hash = await wallet.sign_and_send_transaction({
    "to": "recipient_address",
    "value": "1000000000000000000",  # 1 ETH in wei
    "data": "0x",  # Optional contract data
})

# Get transaction receipt
receipt = await wallet.get_transaction_receipt(tx_hash)

Features

  • Secure Key Management:

    • Private key support
    • Public address derivation
    • Message signing
  • Transaction Operations:

    • Transaction signing
    • Transaction sending
    • Gas estimation
    • Receipt tracking
  • Balance Management:

    • Native token balance
    • ERC20 token balance
    • Contract interactions
  • Network Support:

    • Ethereum
    • Polygon
    • Arbitrum
    • Optimism
    • Base
    • BNB Chain
    • All EVM-compatible chains

License

This project is licensed under the terms of the MIT license.

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

goat_sdk_wallet_evm-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

goat_sdk_wallet_evm-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file goat_sdk_wallet_evm-0.1.2.tar.gz.

File metadata

  • Download URL: goat_sdk_wallet_evm-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for goat_sdk_wallet_evm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ee9f6ee96d7dc6dabab17ff33995b1575ca7c0d3249532349a01ba80127d22d5
MD5 6c0bc452f06fb9124a94e6cddd58fa4d
BLAKE2b-256 a44ca9dc21b651964241dd56274cf704e6ff85623a79217478e64fe14039aa93

See more details on using hashes here.

File details

Details for the file goat_sdk_wallet_evm-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: goat_sdk_wallet_evm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

File hashes

Hashes for goat_sdk_wallet_evm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec0c49c89e680c0b4cea4f393df9ea8c109d266991d2a464a578b5f883f22b3
MD5 52c2abc38f02519ad86c6aee8fa11019
BLAKE2b-256 aaad846e2e03e4e2216e075c32d364f9ea2f2875d53189073247752573f8e337

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