Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = 0 Unknown = 1 )
Variables ¶
This section is empty.
Functions ¶
func ErrorDepth ¶
Types ¶
type GetBaseInfoArgs ¶
GetBaseInfoArgs address
type NotifyConfig ¶
type SendRawTxArgs ¶
SendRawTxArgs represents the arguments to sumbit a new transaction into the transaction pool.
type SendTxArgs ¶
type SendTxArgs struct { From common.Address `json:"from"` Tx hexutil.Bytes `json:"tx"` Signature hexutil.Bytes `json:"signature"` Wait uint64 `json:"wait"` }
SendTxArgs represents the arguments to sumbit a new transaction into the transaction pool.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is used to implement forceproto.ForceServer.
func NewServer ¶
func NewServer(rpcURL string, notify *NotifyConfig) (*Server, error)
NewServer listen and server
func (*Server) GetBaseInfo ¶
func (*Server) SendRawTransaction ¶
func (*Server) SendTransaction ¶
type TransferTx ¶
type TransferTx struct { From common.Address `json:"from"` To *common.Address `json:"to"` Value *big.Int `json:"value"` Hash common.Hash `json:"hash"` Data []byte `json:"data"` BlockNumber *big.Int `json:"blockNumber"` }
func (*TransferTx) MarshalJSON ¶
func (c *TransferTx) MarshalJSON() ([]byte, error)
MarshalJSON encodes to json format.
func (*TransferTx) UnmarshalJSON ¶
func (c *TransferTx) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes from json format to a TransferTx.
Click to show internal directories.
Click to hide internal directories.