Documentation ¶
Index ¶
- Constants
- func InterfaceToBytes(i interface{}) ([]byte, error)
- type HTTPRequester
- func (m HTTPRequester) AccountInfo(address string) (*accounts.AccountInfo, error)
- func (hr *HTTPRequester) Get(api, data string, logIO bool) (map[string]interface{}, error)
- func (m HTTPRequester) ListTxs(address string) ([]string, error)
- func (m HTTPRequester) NodeInfo() (*NodeInfo, error)
- func (hr *HTTPRequester) NodeURL() string
- func (m HTTPRequester) Rebel(datadir string, space uint, coinbase string) error
- func (m HTTPRequester) Sanity() error
- func (m HTTPRequester) Send(b []byte) (string, error)
- func (m HTTPRequester) SetCoinbase(coinbase string) error
- type HttpClient
- type InnerSerializableSignedTransaction
- type NodeInfo
- type Requester
- type SerializableSignedTransaction
- type WalletBE
Constants ¶
View Source
const DefaultNodeHostPort = "localhost:9090"
Variables ¶
This section is empty.
Functions ¶
func InterfaceToBytes ¶
Types ¶
type HTTPRequester ¶
func NewHTTPRequester ¶
func NewHTTPRequester(url string) *HTTPRequester
func (HTTPRequester) AccountInfo ¶
func (m HTTPRequester) AccountInfo(address string) (*accounts.AccountInfo, error)
func (*HTTPRequester) Get ¶
func (hr *HTTPRequester) Get(api, data string, logIO bool) (map[string]interface{}, error)
func (HTTPRequester) NodeInfo ¶
func (m HTTPRequester) NodeInfo() (*NodeInfo, error)
func (*HTTPRequester) NodeURL ¶
func (hr *HTTPRequester) NodeURL() string
func (HTTPRequester) Rebel ¶
func (m HTTPRequester) Rebel(datadir string, space uint, coinbase string) error
func (HTTPRequester) Sanity ¶
func (m HTTPRequester) Sanity() error
func (HTTPRequester) SetCoinbase ¶
func (m HTTPRequester) SetCoinbase(coinbase string) error
type HttpClient ¶
type HttpClient struct {
Requester
}
type InnerSerializableSignedTransaction ¶
type InnerSerializableSignedTransaction struct { AccountNonce uint64 Recipient address.Address GasLimit uint64 Price uint64 Amount uint64 }
TODO rename to SerializableTransaction once we remove the old SerializableTransaction
type SerializableSignedTransaction ¶
type SerializableSignedTransaction struct { InnerSerializableSignedTransaction Signature [64]byte }
Once we support signed txs we should replace SerializableTransaction with this struct. Currently it is only used in the rpc server.
type WalletBE ¶
type WalletBE struct { *HTTPRequester accounts.Store // contains filtered or unexported fields }
func NewWalletBE ¶
func (*WalletBE) CurrentAccount ¶
func (*WalletBE) SetCurrentAccount ¶
func (*WalletBE) StoreAccounts ¶
Click to show internal directories.
Click to hide internal directories.