Documentation ¶
Index ¶
- Variables
- func CheckTxCostAgainstBalance(amount, gasLimit uint64, bBalance *big.Int) (accountHasEnough bool, balance, totalCost big.Int, err error)
- func EstimateGas(from [20]byte, to [20]byte, gasPrice, value *big.Int, data []byte) (res *big.Int, er error)
- func EstimateGas_CH(from [20]byte, to [20]byte, gasPrice, value *big.Int, data []byte) (<-chan *big.Int, <-chan error)
- func GetBalanceCH(address [20]byte) (<-chan *big.Int, <-chan error)
- func GetBalance_byteAddressToBigInt(address [20]byte) (big.Int, error)
- func GetBlockHash(height string) (hash string, er error)
- func GetBlockHeight() (ret string, er error)
- func GetBlockHeightNGasLimit_CH() (<-chan string, <-chan uint64, <-chan error)
- func GetBlockHeight_CH() (<-chan string, <-chan error)
- func GetCode(address string) (hex string, er error)
- func GetGasLimit(height string) (res uint64, er error)
- func GetGasPrice() (ret uint64, er error)
- func GetGasPrice_CH() (<-chan uint64, <-chan error)
- func GetNonceForAddress(address [20]byte) (ret uint64, er error)
- func GetNonceForAddress_CH(address [20]byte) (<-chan uint64, <-chan error)
- func GetStorageAtCH(hexStoragePosition string, w *sync.WaitGroup) <-chan ResponseMessage
- func GetTransactionByHash(hash string) (tr TxByHashResult, er error)
- func HttpPost(reqBytes []byte) (body []byte, er error)
- func SanitizeRpcUrls(rpcPtr *abi.UrlPtr) error
- func SendRawTx(signedTx *types.Transaction) (txid string, er error)
- func SetAbi() error
- func SetRpcUrls(r []string) error
- type LogsResponse
- type Response
- type ResponseMessage
- type TxLog
- type TxLogs
Constants ¶
This section is empty.
Variables ¶
View Source
var Abi gthAbi.ABI
Functions ¶
func CheckTxCostAgainstBalance ¶
func CheckTxCostAgainstBalance(amount, gasLimit uint64, bBalance *big.Int) (accountHasEnough bool, balance, totalCost big.Int, err error)
This is useful during tx construction
func EstimateGas ¶
func EstimateGas_CH ¶
func GetBlockHash ¶
func GetBlockHeight ¶
func GetBlockHeight_CH ¶
func GetGasLimit ¶
func GetGasPrice ¶
func GetGasPrice_CH ¶
func GetNonceForAddress ¶
func GetNonceForAddress_CH ¶
func GetStorageAtCH ¶
func GetStorageAtCH(hexStoragePosition string, w *sync.WaitGroup) <-chan ResponseMessage
func GetTransactionByHash ¶
func SanitizeRpcUrls ¶
func SetRpcUrls ¶
Types ¶
type LogsResponse ¶
type LogsResponse struct {
Result TxLogs `json:"result"`
}
type Response ¶
type Response struct {
Result string `json:"result"`
}
func GetBalance ¶
func GetBalance_byteAddress ¶
func GetStorageAt ¶
func HttpPostWResponse ¶
type ResponseMessage ¶
type TxLog ¶
type TxLog struct { Address string `json:"address"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` Data string `json:"data"` LogIndex string `json:"logIndex"` Removed bool `json:"removed"` Topics []string `json:"topics"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
Click to show internal directories.
Click to hide internal directories.