Versions in this module Expand all Collapse all v1 v1.2.7 Dec 17, 2019 Changes in this version + func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec + func NewJSONCodec(conn io.ReadWriteCloser, srv *rpc.Server) rpc.ServerCodec + func ServeConn(conn io.ReadWriteCloser) + type BatchArg struct + type BlockInfo struct + Creator string + Debts []Debt + Difficulty *big.Int + Hash string + Height uint64 + Nonce uint64 + ParentHash string + StateHash string + Timestamp *big.Int + TotalDifficulty *big.Int + TxDebts []TxDebt + TxHash string + Txs []Transaction + type Client struct + func Dial(network, address string) (*Client, error) + func NewClient(conn io.ReadWriteCloser) *Client + func NewClientWithCodec(codec rpc.ClientCodec) *Client + func (c Client) Notify(serviceMethod string, args interface{}) error + type CurrentBlock struct + Creator string + Difficult *big.Int + HeadHash string + Height uint64 + Timestamp *big.Int + TxCount int + type Debt struct + Amount *big.Int + Block uint64 + Fee int64 + Hash string + Idx uint64 + Payload string + ShardNumber int + To string + TxHash string + type Error struct + Code int + Data interface{} + Message string + func NewError(code int, message string) *Error + func ServerError(rpcerr error) *Error + func (e *Error) Error() string + type GetBlockByHeightRequest struct + FullTx bool + Height int64 + type Header struct + CreateTimestamp *big.Int + Creator string + DebtHash string + Difficulty *big.Int + ExtraData string + Height *big.Int + Nonce *big.Int + PreviousBlockHash string + ReceiptHash string + StateHash string + TxDebtHash string + TxHash string + type JSONRPC2 struct + func (JSONRPC2) Batch(arg BatchArg, replies *[]*json.RawMessage) (err error) + type PeerInfo struct + Caps []string + ID string + LocalAddress string + RemoteAddress string + ShardNumber int + type Receipt struct + ContractAddress string + Failed bool + PostState string + Result string + TotalFee int64 + TxHash string + UsedGas int64 + type SeeleRPC struct + func NewRPC(url string, options ...func(rpc *SeeleRPC)) *SeeleRPC + func (rpc *SeeleRPC) Connect() error + func (rpc *SeeleRPC) CurrentBlockHeight() (uint64, error) + func (rpc *SeeleRPC) GetBalance(account string) (int64, error) + func (rpc *SeeleRPC) GetBlockByHeight(h uint64, fullTx bool) (block *BlockInfo, err error) + func (rpc *SeeleRPC) GetPeersInfo() (result []PeerInfo, err error) + func (rpc *SeeleRPC) GetPendingTransactions() ([]Transaction, error) + func (rpc *SeeleRPC) GetReceiptByTxHash(txhash string) (*Receipt, error) + func (rpc *SeeleRPC) Release() + type Transaction struct + AccountNonce uint64 + Amount *big.Int + Block uint64 + DebtTxHash string + Fee int64 + From string + GasLimit int64 + GasPrice int64 + Hash string + Idx uint64 + Payload string + Timestamp uint64 + To string + TxType int + type TxDebt struct + Amount *big.Int + Fee int64 + Hash string + Payload string + ShardNumber int + To string + TxHash string