Documentation
¶
Index ¶
- Constants
- func BackupWallet() (string, error)
- func CreateAddress() (string, error)
- func CreateBatchAddress(count uint64) (string, error)
- func CreateNewWallet(password string, force bool) (string, error)
- func CreateReceiverAddress() ([]byte, error)
- func GetAddressInfo() ([]string, error)
- func GetConsensus() error
- func RestoreWallet(dbFile string) error
- func SendTransaction(amount string, destination string) (string, error)
- func SummaryWallets()
- func UnlockWallet(password string) error
- type Account
- type Address
- type Client
- type Response
- type Wallet
- type WalletManager
- func (w *WalletManager) BackupWalletFlow() error
- func (w *WalletManager) CreateAddressFlow() error
- func (w *WalletManager) CreateWalletFlow() error
- func (w *WalletManager) GetWalletList() error
- func (w *WalletManager) InitConfigFlow() error
- func (w *WalletManager) RestoreWalletFlow() error
- func (w *WalletManager) ShowConfig() error
- func (w *WalletManager) SummaryFollow() error
- func (w *WalletManager) TransferFlow() error
Constants ¶
View Source
const ( //币种 Symbol = "SC" MasterKey = "Siacoin seed" )
Variables ¶
This section is empty.
Functions ¶
func CreateBatchAddress ¶
CreateBatchAddress 批量创建钱包地址 func CreateBatchAddress(alias, accountID string, count uint64) (string, error) {
func CreateNewWallet ¶
CreateNewWallet 创建钱包
func CreateReceiverAddress ¶
CreateReceiverAddress 给指定账户创建地址
func GetConsensus ¶
func GetConsensus() error
func SendTransaction ¶
SendTransaction 发送交易
Types ¶
type Address ¶
type Address struct {
//Alias string
//AccountId string
Address string
}
func NewAddress ¶
type Client ¶
A Client is a Bitcoin RPC client. It performs RPCs over HTTP using JSON request and responses. A Client must be configured with a secret token to authenticate with other Cores on the network.
type Wallet ¶
type Wallet struct {
WalletID string `json:"rootid"`
Alias string `json:"alias"`
Balance string `json:"balance"`
Password string `json:"password"`
RootPub string `json:"rootpub"`
KeyFile string
ConfirmBalance string `json:"confirmedsiacoinbalance"`
OutgoingSC string `json:"unconfirmedoutgoingsiacoins"`
IncomingSC string `json:"unconfirmedincomingsiacoins"`
SiaFundBalance string `json:"siafundbalance"`
SiaCoinClaimBalance string `json:"siacoinclaimbalance"`
Rescanning bool `json:"rescanning"`
Unlocked bool `json:"unlocked"`
Encrypted bool `json:"encrypted"`
}
Wallet 钱包模型
func GetWalletKeys ¶
GetWalletKeys 通过给定的文件路径加载keystore文件得到钱包列表
type WalletManager ¶
type WalletManager struct{}
func (*WalletManager) GetWalletList ¶
func (w *WalletManager) GetWalletList() error
GetWalletList 获取钱包列表
func (*WalletManager) RestoreWalletFlow ¶
func (w *WalletManager) RestoreWalletFlow() error
RestoreWalletFlow 恢复钱包流程
func (*WalletManager) SummaryFollow ¶
func (w *WalletManager) SummaryFollow() error
SummaryFollow 汇总流程
Click to show internal directories.
Click to hide internal directories.