Documentation ¶
Index ¶
Constants ¶
View Source
const (
ChainClientKey = "Key.ChainClientKey"
)
View Source
const (
CryptoAddressNextDepositSubject = chanPrefix + "CryptoAddress.NextDeposit"
)
Variables ¶
This section is empty.
Functions ¶
func ChainClientContext ¶
Types ¶
type AddressInfo ¶
type ChainClient ¶
type ChainClient interface { GetNewAddress(ctx context.Context, account string) (string, error) GetAddressInfo(ctx context.Context, address string) (AddressInfo, error) GetBlockCount(ctx context.Context) (int64, error) ListUnspent(ctx context.Context, minConf, maxConf int, addresses ...string) ([]TransactionInfo, error) LockUnspent(ctx context.Context, unlock bool, transactions ...TransactionInfo) error ListLockUnspent(ctx context.Context) ([]TransactionInfo, error) GetTransaction(ctx context.Context, txID string) (TransactionInfo, error) }
func ChainClientFromContext ¶
func ChainClientFromContext(ctx context.Context, chain string) ChainClient
Click to show internal directories.
Click to hide internal directories.