Skip to content

goether is a Go package designed to provide various functionalities related to EVM blockchains. This package offers capabilities such as interacting with contracts, exploring blocks, monitoring mempool transactions in real-time.

License

Notifications You must be signed in to change notification settings

goethercore/goether

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goether Go Reference

goether is a Go package designed to provide various functionalities related to EVM blockchains. This package offers capabilities such as interacting with contracts, exploring blocks, monitoring mempool transactions in real-time, and more. Whether you're building decentralized applications or exploring blockchain data, goether aims to simplify your development process.

Don't forget to star ⭐️ the repo

Documentation

Visit the docs to learn more goether docs

Features

  1. Contract Interaction View Contract Transaction Mempool: Monitor real-time transactions in the mempool associated with a specific smart contract.
  2. Blockchain Exploration Get Block by Hash: Retrieve detailed information about a block using its hash. Latest Block: Obtain data regarding the latest block on the blockchain.
  3. Transaction Handling Get Transaction by Hash: Retrieve transaction details using its hash. Transaction Confirmations: Check the number of confirmations for a specific transaction. Address Transaction Count: Get the total number of transactions associated with a particular address.
  4. Wallet Operations Get Wallet Balance: Retrieve the balance of a wallet address.
  5. Mempool Monitoring View Transaction Mempool: Observe real-time transactions in the mempool of the blockchain network. Getting Started

Installation

You can install goether using the go installation command go get:

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 to geth-lte are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

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

About

goether is a Go package designed to provide various functionalities related to EVM blockchains. This package offers capabilities such as interacting with contracts, exploring blocks, monitoring mempool transactions in real-time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages