Documentation ¶
Index ¶
- Constants
- func InitRPCServer(file string) error
- func RPCCall(method string, params interface{}, out interface{}) error
- type Balance
- type Blocks
- type MyTX
- type MyTXs
- type NewTX
- type NewTXArgs
- type Pool
- type PrevHash
- type PrevTXs
- type RPC
- func (rpc *RPC) GetBalance(r *http.Request, args *struct{ Address string }, resp *Balance) error
- func (rpc *RPC) GetBlocks(r *http.Request, args *struct{ MaxHT, MinHT uint }, resp *Blocks) error
- func (rpc *RPC) GetMyTXs(r *http.Request, args *struct{ Address string }, resp *MyTXs) error
- func (rpc *RPC) GetPool(r *http.Request, args *struct{}, resp *Pool) error
- func (rpc *RPC) GetPrevBlockHash(r *http.Request, args *struct{}, resp *PrevHash) error
- func (rpc *RPC) GetPrevTXs(r *http.Request, args *struct{ TX []byte }, resp *PrevTXs) error
- func (rpc *RPC) NewTX(r *http.Request, args *NewTXArgs, resp *NewTX) error
- func (rpc *RPC) ReportBlock(r *http.Request, args *ReportParams, resp *Report) error
- func (rpc *RPC) Send(r *http.Request, args *struct{ TX []byte }, resp *Send) error
- type Report
- type ReportParams
- type Send
Constants ¶
View Source
const URL = "http://localhost:5000/rpc"
Variables ¶
This section is empty.
Functions ¶
func InitRPCServer ¶
Types ¶
type RPC ¶
type RPC struct{}
func (*RPC) GetBalance ¶
func (*RPC) GetPrevBlockHash ¶
func (*RPC) GetPrevTXs ¶
func (*RPC) ReportBlock ¶
type ReportParams ¶
type ReportParams struct {
Block []byte `json:"block"`
}
Click to show internal directories.
Click to hide internal directories.