Documentation ¶
Index ¶
- Variables
- type CallMsg
- func (self CallMsg) CheckNonce() bool
- func (self CallMsg) Data() []byte
- func (self CallMsg) From() web3.Address
- func (self CallMsg) Gas() uint64
- func (self CallMsg) GasPrice() *big.Int
- func (self CallMsg) Hash() web3.Hash
- func (self CallMsg) Nonce() uint64
- func (self CallMsg) To() *web3.Address
- func (self CallMsg) Value() *big.Int
- type Codec
- type HTTP
- type Local
- func (self *Local) Call(method string, out interface{}, params ...interface{}) error
- func (self *Local) CallEvm(msg *web3.CallMsg) (*web3.ExecutionResult, error)
- func (self *Local) Close() error
- func (self *Local) GetBalance(acct web3.Address) (amount *big.Int)
- func (self *Local) SetBalance(acct web3.Address, amount *big.Int)
- type PubSubTransport
- type Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = fmt.Errorf("timeout")
ErrTimeout happens when the websocket requests times out
Functions ¶
This section is empty.
Types ¶
type CallMsg ¶ added in v0.1.7
type CallMsg struct {
// contains filtered or unexported fields
}
func (CallMsg) CheckNonce ¶ added in v0.1.7
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is an http transport
type Local ¶ added in v0.1.7
type Local struct { Executor *executor.Executor BlockNumber uint64 BlockHashes map[uint64]web3.Hash Receipts map[web3.Hash]*web3.Receipt // contains filtered or unexported fields }
func (*Local) GetBalance ¶ added in v0.1.7
type PubSubTransport ¶
type PubSubTransport interface { // Subscribe starts a subscription to a new event Subscribe(method string, param interface{}, callback func(b []byte)) (func() error, error) }
PubSubTransport is a transport that allows subscriptions
type Transport ¶
type Transport interface { // Call makes a jsonrpc request Call(method string, out interface{}, params ...interface{}) error // Close closes the transport connection if necessary Close() error }
Transport is an inteface for transport methods to send jsonrpc requests
func NewTransport ¶
NewTransport creates a new transport object
Click to show internal directories.
Click to hide internal directories.