Documentation ¶
Index ¶
- func DefaultKeysManager() keys.Manager
- func PostTx(tx sdk.Tx) (*ctypes.ResultBroadcastTxCommit, error)
- func RegisterPostTx(r *mux.Router) error
- func RegisterSignTx(r *mux.Router) error
- func SignTx(name, pass string, tx sdk.Tx) error
- type CreateKeyRequest
- type CreateKeyResponse
- type DeleteKeyRequest
- type Keys
- func (k *Keys) DeleteKey(w http.ResponseWriter, r *http.Request)
- func (k *Keys) GenerateKey(w http.ResponseWriter, r *http.Request)
- func (k *Keys) GetKey(w http.ResponseWriter, r *http.Request)
- func (k *Keys) ListKeys(w http.ResponseWriter, r *http.Request)
- func (k *Keys) RegisterAllCRUD(r *mux.Router) error
- func (k *Keys) UpdateKey(w http.ResponseWriter, r *http.Request)
- type SendInput
- type SignRequest
- type UpdateKeyRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultKeysManager ¶
func PostTx ¶
func PostTx(tx sdk.Tx) (*ctypes.ResultBroadcastTxCommit, error)
PostTx is same as a tx
func RegisterPostTx ¶
RegisterPostTx is a mux.Router handler that exposes POST method access to post a transaction to the blockchain.
func RegisterSignTx ¶
RegisterSignTx is a mux.Router handler that exposes POST method access to sign a transaction.
Types ¶
type CreateKeyRequest ¶
type CreateKeyResponse ¶
type DeleteKeyRequest ¶
type Keys ¶
type Keys struct {
// contains filtered or unexported fields
}
func NewDefaultKeysManager ¶
func (*Keys) GenerateKey ¶
func (k *Keys) GenerateKey(w http.ResponseWriter, r *http.Request)
func (*Keys) RegisterAllCRUD ¶
RegisterAllCRUD is a convenience method to register all CRUD for keys to allow access by methods and routes: POST: /keys GET: /keys GET: /keys/{name} POST, PUT: /keys/{name} DELETE: /keys/{name}
type SendInput ¶
type SendInput struct { Fees *coin.Coin `json:"fees"` Multi bool `json:"multi,omitempty"` Sequence uint32 `json:"sequence"` To *sdk.Actor `json:"to"` From *sdk.Actor `json:"from"` Amount coin.Coins `json:"amount"` }
SendInput is the request to send an amount from one actor to another. Note: Not using the `validator:""` tags here because SendInput has many fields so it would be nice to figure out all the invalid inputs and report them back to the caller, in one shot.