Documentation ¶
Index ¶
- type ControlAddressAction
- type Node
- func (n *Node) BatchSendBTM(accountID, password string, outputs map[string]uint64, memo []byte) (string, error)
- func (n *Node) BuildChainTxs(actions []interface{}) ([]*txbuilder.Template, error)
- func (n *Node) ConnectPeer(ip string, port uint16) (*peers.Peer, error)
- func (n *Node) CreateAccount(keyAlias, accountAlias string) (*query.AnnotatedAccount, error)
- func (n *Node) CreateAccountReceiver(alias string) (*txbuilder.Receiver, error)
- func (n *Node) CreateKey(alias, password string) (*api.CreateKeyResp, error)
- func (n *Node) CreateMultiSignAccount(alias string, quorum int, rootXPubs []chainkd.XPub) (*query.AnnotatedAccount, error)
- func (n *Node) DisconnectPeer(peerID string) error
- func (n *Node) GetBlockByHash(hash string) (*types.Block, error)
- func (n *Node) GetBlockByHeight(height uint64) (*types.Block, error)
- func (n *Node) GetVoteByHash(hash string) ([]*api.VoteInfo, error)
- func (n *Node) GetVoteByHeight(height uint64) ([]*api.VoteInfo, error)
- func (n *Node) ListAccounts() (*[]query.AnnotatedAccount, error)
- func (n *Node) ListAddresses(accountAlias string, from, count uint) (*[]api.AddressResp, error)
- func (n *Node) ListBalances(accountAlias string) (*[]wallet.AccountBalance, error)
- func (n *Node) ListKeys() (*[]pseudohsm.XPub, error)
- func (n *Node) ListPeers() (*[]*peers.PeerInfo, error)
- func (n *Node) ListUtxos(accountAlias string, from, count uint) (*[]query.AnnotatedUTXO, error)
- func (n *Node) NetInfo() (*api.NetInfo, error)
- func (n *Node) SignTxs(tpls []*txbuilder.Template, password string) ([]*txbuilder.Template, error)
- func (n *Node) SubmitTx(tx *types.Tx) (string, error)
- func (n *Node) SubmitTxs(txs []*types.Tx) ([]string, error)
- func (n *Node) WalletInfo() (*api.WalletInfo, error)
- type RetireAction
- type SpendAccountAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlAddressAction ¶
type ControlAddressAction struct { Address string `json:"address"` *bc.AssetAmount }
func (*ControlAddressAction) MarshalJSON ¶
func (c *ControlAddressAction) MarshalJSON() ([]byte, error)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node can invoke the api which provide by the full node server
func (*Node) BatchSendBTM ¶
func (*Node) BuildChainTxs ¶
func (*Node) ConnectPeer ¶ added in v1.0.2
func (*Node) CreateAccount ¶ added in v1.0.2
func (n *Node) CreateAccount(keyAlias, accountAlias string) (*query.AnnotatedAccount, error)
默认创建单签账户
func (*Node) CreateAccountReceiver ¶ added in v1.0.2
func (*Node) CreateKey ¶ added in v1.0.2
func (n *Node) CreateKey(alias, password string) (*api.CreateKeyResp, error)
func (*Node) CreateMultiSignAccount ¶ added in v1.0.2
func (n *Node) CreateMultiSignAccount(alias string, quorum int, rootXPubs []chainkd.XPub) (*query.AnnotatedAccount, error)
多签账户
func (*Node) DisconnectPeer ¶ added in v1.0.2
func (*Node) GetBlockByHeight ¶
func (*Node) GetVoteByHeight ¶
func (*Node) ListAccounts ¶ added in v1.0.2
func (n *Node) ListAccounts() (*[]query.AnnotatedAccount, error)
func (*Node) ListAddresses ¶ added in v1.0.2
func (*Node) ListBalances ¶ added in v1.0.2
func (n *Node) ListBalances(accountAlias string) (*[]wallet.AccountBalance, error)
func (*Node) WalletInfo ¶ added in v1.0.2
func (n *Node) WalletInfo() (*api.WalletInfo, error)
type RetireAction ¶
type RetireAction struct { *bc.AssetAmount Arbitrary []byte }
func (*RetireAction) MarshalJSON ¶
func (r *RetireAction) MarshalJSON() ([]byte, error)
type SpendAccountAction ¶
type SpendAccountAction struct { AccountID string `json:"account_id"` *bc.AssetAmount }
func (*SpendAccountAction) MarshalJSON ¶
func (s *SpendAccountAction) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.