wallet

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTxHandlers

func InitTxHandlers(r *mux.Router, prefix string)

InitTxHandlers sets up handlers for transaction-related rpc commands

Types

type Address

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

Address describes each item returned in IncomingTxItems array

type GetRawTxResp

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

GetRawTxResp descibes Result of RPC response > raw (string)

type GetTxIDParams

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

GetTxIDParams describes addresses array params for 'getaddresstxids' RPC call

type GetTxIDsResp

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

GetTxIDsResp describes Result of RPC response > txid (array)

type IncomingTransactions

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

IncomingTransactions describes the incoming transactions in POST body

type IncomingTxItem

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

IncomingTxItem describes incoming transaction items

type Response

type Response struct {
	Results []Result `json:"results"`
}

Response describes top-level response object

type Result

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

Result describes each item returned in results array

type Transaction

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

Transaction describes each item returned in transactions array

Jump to

Keyboard shortcuts

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