Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareSendTx ¶
func RegisterAll ¶
RegisterAll is a convenience function to register all the handlers in this package.
func RegisterCoinSend ¶
RegisterCoinSend is a mux.Router handler that exposes POST method access on route /build/send to create a transaction for sending money from one account to another.
func RegisterQueryAccount ¶
RegisterQueryAccount is a mux.Router handler that exposes GET method access on route /query/account/{signature} to query accounts
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.