Documentation
¶
Index ¶
- func CallOpts(opts ...interface{}) (b *bind.CallOpts)
- func FromAddress(a common.Address) string
- func FromBigInt(b *big.Int) int
- func GetCallMsg(from, to string) ethereum.CallMsg
- func IsTransaction(t interface{}) (tx *types.Transaction, ok bool)
- func PullPublicKey(pk *ecdsa.PrivateKey) (*ecdsa.PublicKey, error)
- func ToAddress(s string) common.Address
- func ToBigInt(b int) *big.Int
- func ToHash(s string) common.Hash
- type Client
- func (c *Client) ClientGet() (cl interface{})
- func (c *Client) GetBallance(ctx context.Context) (ball int, err error)
- func (c *Client) GetChainID(ctx context.Context) *big.Int
- func (c *Client) GetNextTransaction(ctx context.Context) (opts *bind.TransactOpts, err error)
- func (c *Client) ReplaceTx(ctx context.Context, hash string) (opts *bind.TransactOpts, err error)
- func (c *Client) Setup(ctx context.Context, wall *Wallet) (err error)
- func (c *Client) SignTx(ctx context.Context, tx *types.Transaction) (t *types.Transaction, err error)
- func (c *Client) UpdateChainID(ctx context.Context) (err error)
- func (c *Client) UseWallet(wall *Wallet)
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAddress ¶
func FromBigInt ¶
func GetCallMsg ¶
func GetCallMsg(from, to string) ethereum.CallMsg
func IsTransaction ¶
func IsTransaction(t interface{}) ( tx *types.Transaction, ok bool, )
func PullPublicKey ¶
func PullPublicKey(pk *ecdsa.PrivateKey) (*ecdsa.PublicKey, error)
Types ¶
type Client ¶
func (*Client) GetBallance ¶
func (*Client) GetNextTransaction ¶
GetNextTransaction returns the next transaction in the pending transaction queue
func (*Client) SignTx ¶
func (c *Client) SignTx(ctx context.Context, tx *types.Transaction) ( t *types.Transaction, err error, )
not used
Click to show internal directories.
Click to hide internal directories.