rpcclient

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Desc      string      `json:"desc"`
	Active    *bool       `json:"active,omitempty"`
	Range     interface{} `json:"range,omitempty"`
	NextIndex *int        `json:"next_index,omitempty"`
	Timestamp interface{} `json:"timestamp"`
	Internal  *bool       `json:"internal,omitempty"`
	Label     *string     `json:"label,omitempty"`
}

type FutureImportDescriptorsResult

type FutureImportDescriptorsResult chan *rpcclient.Response

func ImportDescriptorsAsync

func ImportDescriptorsAsync(c *rpcclient.Client, descriptors []Descriptor) FutureImportDescriptorsResult

func (FutureImportDescriptorsResult) Receive

type ImportDescriptorsCmd

type ImportDescriptorsCmd struct {
	Descriptors []Descriptor `json:""`
}

ImportDescriptorsCmd @see https://developer.bitcoin.org/reference/rpc/importdescriptors.html

func NewImportDescriptorsCmd

func NewImportDescriptorsCmd(descriptors []Descriptor) *ImportDescriptorsCmd

type ImportDescriptorsResult

type ImportDescriptorsResult []ImportDescriptorsResultElement

func ImportDescriptors

func ImportDescriptors(c *rpcclient.Client, descriptors []Descriptor) (*ImportDescriptorsResult, error)

type ImportDescriptorsResultElement

type ImportDescriptorsResultElement struct {
	Success  bool              `json:"success"`
	Warnings []string          `json:"warnings,omitempty"`
	Error    *btcjson.RPCError `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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