package
Version:
v0.0.0-...-938c068
Opens a new window with list of versions in this module.
Published: Dec 29, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BalanceResponse struct {
Address string `json:"address,omitempty"`
Balance string `json:"balance,omitempty"`
Symbol string `json:"symbol,omitempty"`
Units string `json:"units,omitempty"`
}
type Block struct {
BlockNumber int64 `json:"blockNumber"`
Timestamp uint64 `json:"timestamp"`
Difficulty uint64 `json:"difficulty"`
Hash string `json:"hash"`
TransactionsCount int `json:"transactionsCount"`
Transactions []Transaction `json:"transactions"`
}
type Error struct {
Code uint64 `json:"code,omitempty"`
Message string `json:"message,omitempty"`
}
type HashResponse struct {
Hash string `json:"hash,omitempty"`
}
type Transaction struct {
Hash string `json:"hash"`
Value string `json:"value"`
Gas uint64 `json:"gas"`
GasPrice uint64 `json:"gasPrice"`
Nonce uint64 `json:"nonce"`
To string `json:"to"`
Pending bool `json:"pending"`
}
type TransferEthRequest struct {
PrivKey string `json:"privKey,omitempty"`
To string `json:"to,omitempty"`
Amount int64 `json:"amount,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.