Documentation ¶
Index ¶
- Variables
- type RPCClient
- func (client *RPCClient) MakeAccountBalanceRequest(account string) (*responses.AccountBalanceItem, error)
- func (client *RPCClient) MakeAccountInfoRequest(account string) (*responses.AccountInfoResponse, error)
- func (client *RPCClient) MakeAccountsBalancesRequest(accounts []string) (*responses.AccountsBalancesResponse, error)
- func (client *RPCClient) MakeAccountsFrontiersRequest(accounts []string) (*responses.AccountsFrontiersResponse, error)
- func (client *RPCClient) MakeAccountsPendingRequest(accounts []string) (*responses.AccountsPendingResponse, error)
- func (client *RPCClient) MakeBlockInfoRequest(hash string) (*responses.BlockInfoResponse, error)
- func (client *RPCClient) MakeProcessRequest(request requests.ProcessRequest) (*responses.ProcessResponse, error)
- func (client *RPCClient) MakeReceivableRequest(account string, threshold string) (*responses.ReceivableResponse, error)
- func (client *RPCClient) MakeRequest(request interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAccountNotFound = errors.New("Account not found")
Functions ¶
This section is empty.
Types ¶
type RPCClient ¶
type RPCClient struct { Url string // contains filtered or unexported fields }
func NewRPCClient ¶
func (*RPCClient) MakeAccountBalanceRequest ¶
func (client *RPCClient) MakeAccountBalanceRequest(account string) (*responses.AccountBalanceItem, error)
func (*RPCClient) MakeAccountInfoRequest ¶
func (client *RPCClient) MakeAccountInfoRequest(account string) (*responses.AccountInfoResponse, error)
{"error":"Account not found"}
func (*RPCClient) MakeAccountsBalancesRequest ¶
func (client *RPCClient) MakeAccountsBalancesRequest(accounts []string) (*responses.AccountsBalancesResponse, error)
func (*RPCClient) MakeAccountsFrontiersRequest ¶
func (client *RPCClient) MakeAccountsFrontiersRequest(accounts []string) (*responses.AccountsFrontiersResponse, error)
func (*RPCClient) MakeAccountsPendingRequest ¶
func (client *RPCClient) MakeAccountsPendingRequest(accounts []string) (*responses.AccountsPendingResponse, error)
func (*RPCClient) MakeBlockInfoRequest ¶
func (client *RPCClient) MakeBlockInfoRequest(hash string) (*responses.BlockInfoResponse, error)
func (*RPCClient) MakeProcessRequest ¶
func (client *RPCClient) MakeProcessRequest(request requests.ProcessRequest) (*responses.ProcessResponse, error)
func (*RPCClient) MakeReceivableRequest ¶
func (*RPCClient) MakeRequest ¶
Base request
Click to show internal directories.
Click to hide internal directories.