https://github.com/robertleifke/ether.jl
A Julia package for interacting with the Ethereum ecosystem.
https://github.com/robertleifke/ether.jl
automated-market-maker ethereum julia libraries-and-utilities
Last synced: 2 months ago
JSON representation
A Julia package for interacting with the Ethereum ecosystem.
- Host: GitHub
- URL: https://github.com/robertleifke/ether.jl
- Owner: robertleifke
- Created: 2024-12-04T05:26:56.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T04:33:45.000Z (6 months ago)
- Last Synced: 2025-02-01T03:43:25.011Z (4 months ago)
- Topics: automated-market-maker, ethereum, julia, libraries-and-utilities
- Language: Julia
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ether.jl
Ether.jl is a Julia package designed to bridge it's scientific computing capabilities with Ethereum. It enables seamless interaction with Ethereum nodes, smart contracts, and on-chain data, making it the ideal tool mechanism researchers and automated market maker designers.
## Usage
### Connect to an Ethereum Node
```julia
using ERC20# Connect to an Ethereum node and ERC-20 contract
connection = ERC20.ERC20Connection("http://localhost:8545", "0xYourTokenAddress")
```
### Retrieve Token Balance```julia
balance = ERC20.get_balance(connection, "0xYourWalletAddress")
println("Token Balance: $balance")
```### Transfer Tokens
```julia
result = ERC20.transfer_tokens(connection, "0xSenderAddress", "privateKey", "0xReceiverAddress", 100)
println(result)
```