Documentation
¶
Index ¶
- func NewTransactionDBGetActiveMintConditionHandler(txdb *persist.TransactionDB) httprouter.Handle
- func NewTransactionDBGetBotTransactionsHandler(txdb *persist.TransactionDB) httprouter.Handle
- func NewTransactionDBGetMintConditionAtHandler(txdb *persist.TransactionDB) httprouter.Handle
- func NewTransactionDBGetRecordForIDHandler(txdb *persist.TransactionDB) httprouter.Handle
- func NewTransactionDBGetRecordForNameHandler(txdb *persist.TransactionDB) httprouter.Handle
- func NewWalletFundCoinsHandler(wallet modules.Wallet) httprouter.Handle
- func NewWalletGetPublicKeyHandler(wallet modules.Wallet) httprouter.Handle
- func RegisterTransactionDBHTTPHandlers(router api.Router, txdb *persist.TransactionDB)
- func RegisterWalletHTTPHandlers(router api.Router, wallet modules.Wallet, requiredPassword string)
- type TransactionDBGetBotRecord
- type TransactionDBGetBotTransactions
- type TransactionDBGetMintCondition
- type WalletFundCoins
- type WalletPublicKeyGET
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransactionDBGetActiveMintConditionHandler ¶
func NewTransactionDBGetActiveMintConditionHandler(txdb *persist.TransactionDB) httprouter.Handle
NewTransactionDBGetActiveMintConditionHandler creates a handler to handle the API calls to /transactiondb/mintcondition.
func NewTransactionDBGetBotTransactionsHandler ¶
func NewTransactionDBGetBotTransactionsHandler(txdb *persist.TransactionDB) httprouter.Handle
NewTransactionDBGetBotTransactionsHandler creates a handler to handle the API calls to /transactiondb/3bot/:id/transactions.
func NewTransactionDBGetMintConditionAtHandler ¶
func NewTransactionDBGetMintConditionAtHandler(txdb *persist.TransactionDB) httprouter.Handle
NewTransactionDBGetMintConditionAtHandler creates a handler to handle the API calls to /transactiondb/mintcondition/:height.
func NewTransactionDBGetRecordForIDHandler ¶
func NewTransactionDBGetRecordForIDHandler(txdb *persist.TransactionDB) httprouter.Handle
NewTransactionDBGetRecordForIDHandler creates a handler to handle the API calls to /transactiondb/3bot/:id.
func NewTransactionDBGetRecordForNameHandler ¶
func NewTransactionDBGetRecordForNameHandler(txdb *persist.TransactionDB) httprouter.Handle
NewTransactionDBGetRecordForNameHandler creates a handler to handle the API calls to /transactiondb/whois/3bot/:name.
func NewWalletFundCoinsHandler ¶
func NewWalletFundCoinsHandler(wallet modules.Wallet) httprouter.Handle
NewWalletFundCoinsHandler creates a handler to handle the API calls to /wallet/fund/coins?amount=.
func NewWalletGetPublicKeyHandler ¶
func NewWalletGetPublicKeyHandler(wallet modules.Wallet) httprouter.Handle
NewWalletGetPublicKeyHandler creates a handler to handle API calls to /wallet/publickey.
func RegisterTransactionDBHTTPHandlers ¶
func RegisterTransactionDBHTTPHandlers(router api.Router, txdb *persist.TransactionDB)
RegisterTransactionDBHTTPHandlers registers the handlers for all TransactionDB HTTP endpoints.
Types ¶
type TransactionDBGetBotRecord ¶
TransactionDBGetBotRecord contains a requested bot record.
type TransactionDBGetBotTransactions ¶
type TransactionDBGetBotTransactions struct {
Identifiers []types.TransactionID `json:"ids"`
}
TransactionDBGetBotTransactions contains the requested identifiers of transactions for a specific bot.
type TransactionDBGetMintCondition ¶
type TransactionDBGetMintCondition struct {
MintCondition types.UnlockConditionProxy `json:"mintcondition"`
}
TransactionDBGetMintCondition contains a requested mint condition, either the current active one active for the given blockheight or lower.
type WalletFundCoins ¶
type WalletFundCoins struct {
CoinInputs []types.CoinInput `json:"coininputs"`
RefundCoinOutput *types.CoinOutput `json:"refund"`
}
WalletFundCoins is the resulting object that is returned, to be used by a client to fund a transaction of any type.
type WalletPublicKeyGET ¶
WalletPublicKeyGET contains a public key returned by a GET call to /wallet/publickey.