api

package
v1.1.2-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

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.

func RegisterWalletHTTPHandlers

func RegisterWalletHTTPHandlers(router api.Router, wallet modules.Wallet, requiredPassword string)

RegisterWalletHTTPHandlers registers the (tfchain-specific) handlers for all Wallet HTTP endpoints.

Types

type TransactionDBGetBotRecord

type TransactionDBGetBotRecord struct {
	Record tftypes.BotRecord `json:"record"`
}

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

type WalletPublicKeyGET struct {
	PublicKey tftypes.PublicKey `json:"publickey"`
}

WalletPublicKeyGET contains a public key returned by a GET call to /wallet/publickey.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL