goether

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: GPL-3.0

README

# Goether

`goether` is a Go package designed to provide easy access to Ethereum and Ethereum-compatible blockchain functionalities, such as interacting with smart contracts, reading the mempool for pending transactions, accessing block information, and more.

## Installation

You can install `goether` using `go get`:

```shell
go get github.com/goethercore/goether

Usage

Initialization

import "github.com/goethercore/goether"

func main() {
    goether.Init()
}

Examples

1. Reading Contract Transactions from Mempool
goether.ContractmemPool()
2. Streaming Mempool Transactions
goether.StreamMemPool()
3. Retrieving User Contract Information
goether.UserContract()
4. Sending Native Tokens
goether.SendCoin()
5. Reading Mempool with Status
goether.MemPoolWithStatus()
6. Retrieving Block Information
goether.BlockByHash()
7. Retrieving Transaction Information
goether.GetTransactionByHash()
8. Retrieving Transaction Confirmation
goether.GetTransactionConfirmation()
9. Retrieving Block Transaction Counts
goether.GetBlockTransactionCounts()
10. Retrieving Latest Block
goether.LatestBlock()
11. Retrieving Address Transactions Count
goether.AddressTransactionCount()
12. Retrieving Wallet Balance
goether.GetWalletBalance()

Configuration

Before using the package, make sure to set up your environment variables by creating a .env file and providing the required API key:

APIKEY=your-api-key

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.


This Markdown formatted README provides the same content as the previous template but in Markdown syntax.

Directories

Path Synopsis
Package common contains various helper functions.
Package common contains various helper functions.
hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL