Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyABCIResponse = errors.New("empty ABCI response") ErrEmptyRPCResponse = errors.New("empty RPC response") )
Error variables defines empty response from ABCI and RPC.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { AccountAPI PayloadAPI }
API is the high level interface for Anychaindb client applications.
type AccountAPI ¶
type AccountAPI interface { CreateAccount() (id, pub, priv string, err error) GetAccount(id string) (*state.Account, error) SearchAccounts(query []byte) ([]state.Account, error) }
AccountAPI describes all account related functions.
type PayloadAPI ¶
type PayloadAPI interface { AddPayload(senderAccountID string, publicData interface{}, privateData []byte) (ID string, err error) GetPayload(ID, receiverID, privKey string) (*state.Payload, error) SearchPayloads(query []byte, receiverID, privKey string) ([]state.Payload, error) }
PayloadAPI interface provides all transaction data related methods.
Click to show internal directories.
Click to hide internal directories.