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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee9f6ee96d7dc6dabab17ff33995b1575ca7c0d3249532349a01ba80127d22d5
|
|
| MD5 |
6c0bc452f06fb9124a94e6cddd58fa4d
|
|
| BLAKE2b-256 |
a44ca9dc21b651964241dd56274cf704e6ff85623a79217478e64fe14039aa93
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ec0c49c89e680c0b4cea4f393df9ea8c109d266991d2a464a578b5f883f22b3
|
|
| MD5 |
52c2abc38f02519ad86c6aee8fa11019
|
|
| BLAKE2b-256 |
aaad846e2e03e4e2216e075c32d364f9ea2f2875d53189073247752573f8e337
|