Documentation ¶
Index ¶
- Constants
- Variables
- func GetAddressInfo(ctx context.Context, chain, address string) (common.AddressInfo, error)
- func GetNewAddress(ctx context.Context, chain, account string) (string, error)
- func GetTransaction(ctx context.Context, chain string, txID string) (common.TransactionInfo, error)
- func ImportAddress(ctx context.Context, chain, account, address, pubkey, blindingkey string) error
- func ListLockUnspent(ctx context.Context, chain string) ([]common.TransactionInfo, error)
- func LockUnspent(ctx context.Context, chain string, unlock bool, ...) error
- func SpendFunds(ctx context.Context, chain string, changeAddress string, ...) (common.SpendTx, error)
- type AddressInfo
- type ChainState
- type TransactionInfo
Constants ¶
View Source
const (
AddressBatchSize = 16 // maximum address count for RPC requests
)
Variables ¶
View Source
var (
ErrChainClientNotFound = errors.New("ChainClient Not Found")
)
Functions ¶
func GetAddressInfo ¶
func GetTransaction ¶
func ImportAddress ¶ added in v0.0.5
func ListLockUnspent ¶
func LockUnspent ¶
Types ¶
type AddressInfo ¶
type AddressInfo struct { Chain string PublicAddress string Mined uint64 // 0 unknown, 1 mempool, BlockHeight Transactions []TransactionInfo }
func FetchChainAddressesInfo ¶
func FetchChainAddressesInfo(ctx context.Context, state ChainState, minConf, maxConf uint64, publicAddresses ...string) ([]AddressInfo, error)
type ChainState ¶
func FetchChainsState ¶
func FetchChainsState(ctx context.Context, chains ...string) ([]ChainState, error)
Click to show internal directories.
Click to hide internal directories.