Versions in this module Expand all Collapse all v1 v1.3.0 Dec 20, 2021 Changes in this version type TxData + PublicKey string + Raw string + UnsignedRawTx string + UnsignedRawTxHash string v1.2.0 Oct 4, 2020 v1.1.0 Jun 18, 2020 Changes in this version + var DefaultChainID = big.NewInt(1007) + var IsDecimalString = regexp.MustCompile(`^[1-9]\d*$|^0$|^0\.\d*$|^[1-9](\d)*\.(\d)*$`).MatchString + var UnitETH = "ETH" + var UnitList []string + var UnitString string + var UnitWEI = "WEI" + func InitUnit(bc BlockChain) + type BlockChain int + const Ethereum + const NewChain + const UnknownChain + func (bc BlockChain) Init() + func (bc BlockChain) String() string + type CLI struct + Name string + func CopyCLI(cli *CLI) *CLI + func NewCLI() *CLI + func (cli *CLI) BuildClient() error + func (cli *CLI) Embeddable() *CLI + func (cli *CLI) Execute() + func (cli *CLI) Run(args ...string) string + func (cli *CLI) TestCommand(command string) string + type Transaction struct + Data []byte + From common.Address + GasLimit uint64 + GasPrice *big.Int + NetworkID *big.Int + Nonce uint64 + Password string + To common.Address + Unit string + Value *big.Int + func (t *Transaction) UnmarshalJSON(input []byte) error + func (t Transaction) MarshalJSON() ([]byte, error) + type TxData struct + ChainID *big.Int + Data string + From common.Address + GasLimit uint64 + Hash common.Hash + Nonce uint64 + Price *big.Int + R string + S string + To *common.Address + V string + Value string + type Unit string