Documentation ¶
Index ¶
- func CheckTxCostAgainstBalance(amount, gasLimit uint64, address [20]byte) (accountHasEnough bool, balance, totalCost big.Int, err error)
- func EstimateGas(from [20]byte, to [20]byte, value *big.Int, data []byte) (res *big.Int, err error)
- func GetBalance_byteAddressToBigInt(address [20]byte) (big.Int, error)
- func GetBlockHash(height string) (string, error)
- func GetBlockHeight() (ret string, err error)
- func GetGasLimit(height string) (res uint64, err error)
- func GetNonceForAddress(address [20]byte) (ret uint64, err error)
- func SanitizeRpcUrls(rpcPtr *archonAbi.UrlPtr) error
- func SendRawTx(signedTx *types.Transaction) (res string, err error)
- func SetRpcUrl(r []string) error
- type LogsResponse
- type Response
- type TxLog
- type TxLogs
- type TxReceipt
- type TxReceiptResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTxCostAgainstBalance ¶
func CheckTxCostAgainstBalance(amount, gasLimit uint64, address [20]byte) (accountHasEnough bool, balance, totalCost big.Int, err error)
This is useful during tx construction
func EstimateGas ¶
func GetBlockHash ¶
func GetBlockHeight ¶
func GetGasLimit ¶
func GetNonceForAddress ¶
func SanitizeRpcUrls ¶ added in v0.0.16
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 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"` }
type TxReceipt ¶
type TxReceipt struct { TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` From string `json:"from"` To string `json:"to"` CumulativeGasUsed string `json:"cumulativeGasUsed"` GasUsed string `json:"gasUsed"` ContractAddress string `json:"contractAddress"` TxLogs TxLogs `json:"logs"` LogsBloom string `json:"logsBloom"` }
func GetTxReceipt ¶
type TxReceiptResponse ¶
type TxReceiptResponse struct {
Result TxReceipt `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.