Skip to main content

Web3 Wallet for GOAT SDK

A Python implementation of a Web3 wallet for the GOAT SDK, providing enhanced Ethereum and EVM-compatible chain support through web3.py integration.

Installation

poetry add goat-sdk-wallet-web3

# Required dependency
poetry add goat-sdk-wallet-evm

Usage

from goat_wallets.web3 import web3_wallet

# Initialize wallet with private key
wallet = web3_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 native token balance
balance = await wallet.get_balance()

# Send transaction
tx_hash = await wallet.send_transaction({
    "to": "recipient_address",
    "value": "1000000000000000000",  # 1 ETH in wei
    "data": "0x",  # Optional contract data
    "gas": 21000,  # Optional gas limit
    "maxFeePerGas": "50000000000"  # Optional max fee per gas (50 gwei)
})

# Call contract method
result = await wallet.call_contract(
    contract_address="contract_address",
    function_name="balanceOf",
    args=["token_holder_address"]
)

Features

  • Web3.py Integration:

    • Full web3.py functionality
    • Enhanced contract interactions
    • ABI handling
    • Gas estimation
  • Transaction Management:

    • EIP-1559 support
    • Legacy transaction support
    • Contract deployment
    • Method encoding/decoding
  • Smart Contract Features:

    • Contract interaction
    • Event listening
    • Function calling
    • State queries
  • 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.

Metadata

Release files for goat-sdk-wallet-web3 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for goat-sdk-wallet-web3 0.1.5
File Size Uploaded Provenance Actions
goat_sdk_wallet_web3-0.1.5.tar.gz 4.0 kB Without provenance Details for goat_sdk_wallet_web3-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for goat-sdk-wallet-web3 0.1.5
File Interpreter ABI Platform Actions
goat_sdk_wallet_web3-0.1.5-py3-none-any.whl Python 3 none any Details for goat_sdk_wallet_web3-0.1.5-py3-none-any.whl

Total release size: 8.4 kB

Release files / goat_sdk_wallet_web3-0.1.5.tar.gz

Download URL goat_sdk_wallet_web3-0.1.5.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df8eea0c5d2a195b8b49e531fb1e5b78bbdddfa8ceb5ae8d0fb8e138d60400e2
BLAKE2b-256 checksum
How to use checksums
de8c27b0660dc2a5059d87194b77c46c6a7a7e6e237bc8a13cf62b175ce92108
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

Release files / goat_sdk_wallet_web3-0.1.5-py3-none-any.whl

Download URL goat_sdk_wallet_web3-0.1.5-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9816f0b58ee8391991e3be337ee364217038895c33bb0b0b639df52a09984cd
BLAKE2b-256 checksum
How to use checksums
bdc779c514c61fd0a46faae86b341600aaab48cc27c990417899c792d2fe998e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.16 Linux/6.8.0-1021-azure

Security for goat-sdk-wallet-web3 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page