daemonapi

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWalletHandlers

func InitWalletHandlers(r *mux.Router, coinData conf.CoinData, prefix string)

InitWalletHandlers sets up handlers for transaction-related rpc commands

Types

type AddressTransactions

type AddressTransactions struct {
	Address      string        `json:"address"`
	Transactions []Transaction `json:"transactions"`
}

AddressTransactions contains array of transactions for address

type GetRawTxResp

type GetRawTxResp struct {
	Result string `json:"result"`
}

GetRawTxResp is the Result of RPC response > raw (string)

type GetTxIDParams

type GetTxIDParams struct {
	Addresses []string `json:"addresses"`
}

GetTxIDParams are the addresses array params for 'getaddresstxids' RPC call

type GetTxIDsResp

type GetTxIDsResp struct {
	Result []string `json:"result"`
}

GetTxIDsResp is the Result of RPC response > txid (array)

type IncomingTransactions

type IncomingTransactions struct {
	IncomingTxItems []WalletItem `json:"transactions"`
}

IncomingTransactions are the incoming transactions in POST body

type Transaction

type Transaction struct {
	TxID    string      `json:"txid"`
	RawTx   string      `json:"rawtx"`
	Verbose interface{} `json:"verbose"`
}

Transaction contains txid, raw transactions txid, verbose boolean

type TxResponse

type TxResponse struct {
	Results []WalletResult `json:"results"`
}

TxResponse is the top-level response object

type WalletItem

type WalletItem struct {
	Currency  string   `json:"currency"`
	Addresses []string `json:"addresses"`
}

WalletItem is the incoming currency and corresponding addresses

type WalletResult

type WalletResult struct {
	Currency  string                `json:"currency"`
	Addresses []AddressTransactions `json:"addresses"`
}

WalletResult is all transactions for array of address by currency

Jump to

Keyboard shortcuts

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