Versions in this module Expand all Collapse all v1 v1.0.0 Sep 16, 2022 Changes in this version + const AckType + const AmountUnit + const BinaryType + const DefaultSessionAllowAddr + const MessageIDSize + const MultiClientIdentifierRe + const SessionIDSize + const SessionType + const TextType + var DefaultClientConfig = ClientConfig + var DefaultDialConfig = DialConfig + var DefaultMessageConfig = MessageConfig + var DefaultRPCConfig = RPCConfig + var DefaultSeedRPCServerAddr = []string + var DefaultSessionConfig = ncp.Config + var DefaultTransactionConfig = TransactionConfig + var DefaultWalletConfig = WalletConfig + var ErrAddrNotAllowed = errors.New("address not allowed") + var ErrClosed = ncp.NewGenericError("use of closed network connection", true, true) + var ErrConnectFailed = errors.New("connect failed") + var ErrCreateClientFailed = errors.New("failed to create client") + var ErrDecryptFailed = errors.New("decrypt message failed") + var ErrExpiredNanoPay = errors.New("nanopay expired") + var ErrExpiredNanoPayTxn = errors.New("nanopay transaction expired") + var ErrInsufficientBalance = errors.New("insufficient balance") + var ErrInvalidAmount = errors.New("invalid amount") + var ErrInvalidDestination = errors.New("invalid destination") + var ErrInvalidPayloadType = errors.New("invalid payload type") + var ErrInvalidPubkey = errors.New("invalid public key") + var ErrInvalidPubkeyOrName = errors.New("invalid public key or name") + var ErrInvalidPubkeySize = errors.New("invalid public key size") + var ErrInvalidWalletVersion = fmt.Errorf("invalid wallet version, should be between %v and %v", ...) + var ErrKeyNotInMap = errors.New("key not in map") + var ErrMessageOversize = fmt.Errorf("encoded message is greater than %v bytes", maxClientMessageSize) + var ErrNanoPayClosed = errors.New("use of closed nano pay claimer") + var ErrNilClient = errors.New("client is nil") + var ErrNilWebsocketConn = errors.New("nil websocket connection") + var ErrNoDestination = errors.New("no destination") + var ErrNotNanoPay = errors.New("not nano pay transaction") + var ErrResolveLimit = errors.New("resolve depth exceeded") + var ErrUnencryptedMessage = errors.New("message is unencrypted") + var ErrWrongPassword = errors.New("wrong password") + var ErrWrongRecipient = errors.New("wrong nano pay recipient") + var NewStringArray = nkngomobile.NewStringArray + var NewStringArrayFromString = nkngomobile.NewStringArrayFromString + var NewStringMap = nkngomobile.NewStringMap + var NewStringMapWithSize = nkngomobile.NewStringMapWithSize + func ClientAddrToPubKey(clientAddr string) ([]byte, error) + func ClientAddrToWalletAddr(clientAddr string) (string, error) + func DeleteName(s signerRPCClient, name string, config *TransactionConfig) (string, error) + func DeleteNameContext(ctx context.Context, s signerRPCClient, name string, config *TransactionConfig) (string, error) + func GetDefaultSessionConfig() *ncp.Config + func GetHeight(config RPCConfigInterface) (int32, error) + func GetHeightContext(ctx context.Context, config RPCConfigInterface) (int32, error) + func GetNonce(address string, txPool bool, config RPCConfigInterface) (int64, error) + func GetNonceContext(ctx context.Context, address string, txPool bool, config RPCConfigInterface) (int64, error) + func GetSubscribersCount(topic string, subscriberHashPrefix []byte, config RPCConfigInterface) (int, error) + func GetSubscribersCountContext(ctx context.Context, topic string, subscriberHashPrefix []byte, ...) (int, error) + func MeasureSeedRPCServer(seedRPCList *nkngomobile.StringArray, timeout int32) (*nkngomobile.StringArray, error) + func MeasureSeedRPCServerContext(ctx context.Context, seedRPCList *nkngomobile.StringArray, timeout int32) (*nkngomobile.StringArray, error) + func PubKeyToWalletAddr(pubKey []byte) (string, error) + func RPCCall(parentCtx context.Context, method string, params map[string]interface{}, ...) error + func RandomBytes(numBytes int) ([]byte, error) + func RegisterName(s signerRPCClient, name string, config *TransactionConfig) (string, error) + func RegisterNameContext(ctx context.Context, s signerRPCClient, name string, config *TransactionConfig) (string, error) + func ResolveDest(dest string, resolver []nkngomobile.Resolver) (string, bool, error) + func ResolveDestN(dest string, resolver []nkngomobile.Resolver, depth int32) (string, error) + func ResolveDests(dests []string, resolver []nkngomobile.Resolver, depth int32) ([]string, error) + func SendRawTransaction(txn *transaction.Transaction, config RPCConfigInterface) (string, error) + func SendRawTransactionContext(ctx context.Context, txn *transaction.Transaction, config RPCConfigInterface) (string, error) + func Subscribe(s signerRPCClient, identifier, topic string, duration int, meta string, ...) (string, error) + func SubscribeContext(ctx context.Context, s signerRPCClient, identifier, topic string, duration int, ...) (string, error) + func Transfer(s signerRPCClient, address, amount string, config *TransactionConfig) (string, error) + func TransferContext(ctx context.Context, s signerRPCClient, address, amount string, ...) (string, error) + func TransferName(s signerRPCClient, name string, recipientPubKey []byte, ...) (string, error) + func TransferNameContext(ctx context.Context, s signerRPCClient, name string, recipientPubKey []byte, ...) (string, error) + func Unsubscribe(s signerRPCClient, identifier, topic string, config *TransactionConfig) (string, error) + func UnsubscribeContext(ctx context.Context, s signerRPCClient, identifier, topic string, ...) (string, error) + func VerifyWalletAddress(address string) error + type Account struct + func NewAccount(seed []byte) (*Account, error) + func (account *Account) PubKey() []byte + func (account *Account) Seed() []byte + func (account *Account) WalletAddress() string + type Amount struct + func GetBalance(address string, config RPCConfigInterface) (*Amount, error) + func GetBalanceContext(ctx context.Context, address string, config RPCConfigInterface) (*Amount, error) + func NewAmount(s string) (*Amount, error) + func (amount *Amount) ToFixed64() common.Fixed64 + type Client struct + OnConnect *OnConnect + OnMessage *OnMessage + func NewClient(account *Account, identifier string, config *ClientConfig) (*Client, error) + func (c *Client) Account() *Account + func (c *Client) Address() string + func (c *Client) Balance() (*Amount, error) + func (c *Client) BalanceByAddress(address string) (*Amount, error) + func (c *Client) BalanceByAddressContext(ctx context.Context, address string) (*Amount, error) + func (c *Client) BalanceContext(ctx context.Context) (*Amount, error) + func (c *Client) Close() error + func (c *Client) DeleteName(name string, config *TransactionConfig) (string, error) + func (c *Client) DeleteNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (c *Client) GetConn() *websocket.Conn + func (c *Client) GetHeight() (int32, error) + func (c *Client) GetHeightContext(ctx context.Context) (int32, error) + func (c *Client) GetNode() *Node + func (c *Client) GetNonce(txPool bool) (int64, error) + func (c *Client) GetNonceByAddress(address string, txPool bool) (int64, error) + func (c *Client) GetNonceByAddressContext(ctx context.Context, address string, txPool bool) (int64, error) + func (c *Client) GetNonceContext(ctx context.Context, txPool bool) (int64, error) + func (c *Client) GetRegistrant(name string) (*Registrant, error) + func (c *Client) GetRegistrantContext(ctx context.Context, name string) (*Registrant, error) + func (c *Client) GetSubscribers(topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (c *Client) GetSubscribersContext(ctx context.Context, topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (c *Client) GetSubscribersCount(topic string, subscriberHashPrefix []byte) (int, error) + func (c *Client) GetSubscribersCountContext(ctx context.Context, topic string, subscriberHashPrefix []byte) (int, error) + func (c *Client) GetSubscription(topic string, subscriber string) (*Subscription, error) + func (c *Client) GetSubscriptionContext(ctx context.Context, topic string, subscriber string) (*Subscription, error) + func (c *Client) IsClosed() bool + func (c *Client) NewNanoPay(recipientAddress, fee string, duration int) (*NanoPay, error) + func (c *Client) NewNanoPayClaimer(recipientAddress string, claimIntervalMs, lingerMs int32, ...) (*NanoPayClaimer, error) + func (c *Client) PubKey() []byte + func (c *Client) Publish(topic string, data interface{}, config *MessageConfig) error + func (c *Client) PublishBinary(topic string, data []byte, config *MessageConfig) error + func (c *Client) PublishText(topic string, data string, config *MessageConfig) error + func (c *Client) Reconnect() + func (c *Client) RegisterName(name string, config *TransactionConfig) (string, error) + func (c *Client) RegisterNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (c *Client) Seed() []byte + func (c *Client) Send(dests *nkngomobile.StringArray, data interface{}, config *MessageConfig) (*OnMessage, error) + func (c *Client) SendBinary(dests *nkngomobile.StringArray, data []byte, config *MessageConfig) (*OnMessage, error) + func (c *Client) SendRawTransaction(txn *transaction.Transaction) (string, error) + func (c *Client) SendRawTransactionContext(ctx context.Context, txn *transaction.Transaction) (string, error) + func (c *Client) SendText(dests *nkngomobile.StringArray, data string, config *MessageConfig) (*OnMessage, error) + func (c *Client) SetWriteDeadline(deadline time.Time) error + func (c *Client) SignTransaction(tx *transaction.Transaction) error + func (c *Client) Subscribe(identifier, topic string, duration int, meta string, config *TransactionConfig) (string, error) + func (c *Client) SubscribeContext(ctx context.Context, identifier, topic string, duration int, meta string, ...) (string, error) + func (c *Client) Transfer(address, amount string, config *TransactionConfig) (string, error) + func (c *Client) TransferContext(ctx context.Context, address, amount string, config *TransactionConfig) (string, error) + func (c *Client) TransferName(name string, recipientPubKey []byte, config *TransactionConfig) (string, error) + func (c *Client) TransferNameContext(ctx context.Context, name string, recipientPubKey []byte, ...) (string, error) + func (c *Client) Unsubscribe(identifier, topic string, config *TransactionConfig) (string, error) + func (c *Client) UnsubscribeContext(ctx context.Context, identifier, topic string, config *TransactionConfig) (string, error) + type ClientAddr struct + func NewClientAddr(addr string) *ClientAddr + func (addr ClientAddr) Network() string + func (addr ClientAddr) String() string + type ClientConfig struct + AllowUnencrypted bool + ConnectRetries int32 + MaxReconnectInterval int32 + MessageConfig *MessageConfig + MinReconnectInterval int32 + MsgCacheCleanupInterval int32 + MsgCacheExpiration int32 + MsgChanLen int32 + RPCConcurrency int32 + RPCTimeout int32 + ResolverDepth int32 + Resolvers *nkngomobile.ResolverArray + SeedRPCServerAddr *nkngomobile.StringArray + SessionConfig *ncp.Config + WsHandshakeTimeout int32 + WsWriteTimeout int32 + func GetDefaultClientConfig() *ClientConfig + func MergeClientConfig(conf *ClientConfig) (*ClientConfig, error) + func (c *ClientConfig) RPCGetConcurrency() int32 + func (c *ClientConfig) RPCGetRPCTimeout() int32 + func (c *ClientConfig) RPCGetSeedRPCServerAddr() *nkngomobile.StringArray + type DialConfig struct + DialTimeout int32 + SessionConfig *ncp.Config + func GetDefaultDialConfig(baseSessionConfig *ncp.Config) *DialConfig + func MergeDialConfig(baseSessionConfig *ncp.Config, conf *DialConfig) (*DialConfig, error) + type ErrorWithCode interface + Code func() int32 + type Message struct + Data []byte + Encrypted bool + MessageID []byte + NoReply bool + Src string + Type int32 + func (msg *Message) Reply(data interface{}) error + func (msg *Message) ReplyBinary(data []byte) error + func (msg *Message) ReplyText(data string) error + type MessageConfig struct + Limit int32 + MaxHoldingSeconds int32 + MessageID []byte + NoReply bool + Offset int32 + TxPool bool + Unencrypted bool + func GetDefaultMessageConfig() *MessageConfig + func MergeMessageConfig(base, conf *MessageConfig) (*MessageConfig, error) + type MultiClient struct + OnConnect *OnConnect + OnMessage *OnMessage + func NewMultiClient(account *Account, baseIdentifier string, numSubClients int, ...) (*MultiClient, error) + func (m *MultiClient) Accept() (net.Conn, error) + func (m *MultiClient) AcceptSession() (*ncp.Session, error) + func (m *MultiClient) Account() *Account + func (m *MultiClient) Addr() net.Addr + func (m *MultiClient) Address() string + func (m *MultiClient) Balance() (*Amount, error) + func (m *MultiClient) BalanceByAddress(address string) (*Amount, error) + func (m *MultiClient) BalanceByAddressContext(ctx context.Context, address string) (*Amount, error) + func (m *MultiClient) BalanceContext(ctx context.Context) (*Amount, error) + func (m *MultiClient) Close() error + func (m *MultiClient) DeleteName(name string, config *TransactionConfig) (string, error) + func (m *MultiClient) DeleteNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (m *MultiClient) Dial(remoteAddr string) (net.Conn, error) + func (m *MultiClient) DialSession(remoteAddr string) (*ncp.Session, error) + func (m *MultiClient) DialWithConfig(remoteAddr string, config *DialConfig) (*ncp.Session, error) + func (m *MultiClient) GetClient(i int) *Client + func (m *MultiClient) GetClients() map[int]*Client + func (m *MultiClient) GetDefaultClient() *Client + func (m *MultiClient) GetHeight() (int32, error) + func (m *MultiClient) GetHeightContext(ctx context.Context) (int32, error) + func (m *MultiClient) GetNonce(txPool bool) (int64, error) + func (m *MultiClient) GetNonceByAddress(address string, txPool bool) (int64, error) + func (m *MultiClient) GetNonceByAddressContext(ctx context.Context, address string, txPool bool) (int64, error) + func (m *MultiClient) GetNonceContext(ctx context.Context, txPool bool) (int64, error) + func (m *MultiClient) GetRegistrant(name string) (*Registrant, error) + func (m *MultiClient) GetRegistrantContext(ctx context.Context, name string) (*Registrant, error) + func (m *MultiClient) GetSubscribers(topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (m *MultiClient) GetSubscribersContext(ctx context.Context, topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (m *MultiClient) GetSubscribersCount(topic string, subscriberHashPrefix []byte) (int, error) + func (m *MultiClient) GetSubscribersCountContext(ctx context.Context, topic string, subscriberHashPrefix []byte) (int, error) + func (m *MultiClient) GetSubscription(topic string, subscriber string) (*Subscription, error) + func (m *MultiClient) GetSubscriptionContext(ctx context.Context, topic string, subscriber string) (*Subscription, error) + func (m *MultiClient) IsClosed() bool + func (m *MultiClient) Listen(addrsRe *nkngomobile.StringArray) error + func (m *MultiClient) NewNanoPay(recipientAddress, fee string, duration int) (*NanoPay, error) + func (m *MultiClient) NewNanoPayClaimer(recipientAddress string, claimIntervalMs, lingerMs int32, ...) (*NanoPayClaimer, error) + func (m *MultiClient) PubKey() []byte + func (m *MultiClient) Publish(topic string, data interface{}, config *MessageConfig) error + func (m *MultiClient) PublishBinary(topic string, data []byte, config *MessageConfig) error + func (m *MultiClient) PublishText(topic string, data string, config *MessageConfig) error + func (m *MultiClient) Reconnect() + func (m *MultiClient) RegisterName(name string, config *TransactionConfig) (string, error) + func (m *MultiClient) RegisterNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (m *MultiClient) Seed() []byte + func (m *MultiClient) Send(dests *nkngomobile.StringArray, data interface{}, config *MessageConfig) (*OnMessage, error) + func (m *MultiClient) SendBinary(dests *nkngomobile.StringArray, data []byte, config *MessageConfig) (*OnMessage, error) + func (m *MultiClient) SendBinaryWithClient(clientID int, dests *nkngomobile.StringArray, data []byte, ...) (*OnMessage, error) + func (m *MultiClient) SendRawTransaction(txn *transaction.Transaction) (string, error) + func (m *MultiClient) SendRawTransactionContext(ctx context.Context, txn *transaction.Transaction) (string, error) + func (m *MultiClient) SendText(dests *nkngomobile.StringArray, data string, config *MessageConfig) (*OnMessage, error) + func (m *MultiClient) SendTextWithClient(clientID int, dests *nkngomobile.StringArray, data string, ...) (*OnMessage, error) + func (m *MultiClient) SendWithClient(clientID int, dests *nkngomobile.StringArray, data interface{}, ...) (*OnMessage, error) + func (m *MultiClient) SignTransaction(tx *transaction.Transaction) error + func (m *MultiClient) Subscribe(identifier, topic string, duration int, meta string, config *TransactionConfig) (string, error) + func (m *MultiClient) SubscribeContext(ctx context.Context, identifier, topic string, duration int, meta string, ...) (string, error) + func (m *MultiClient) Transfer(address, amount string, config *TransactionConfig) (string, error) + func (m *MultiClient) TransferContext(ctx context.Context, address, amount string, config *TransactionConfig) (string, error) + func (m *MultiClient) TransferName(name string, recipientPubKey []byte, config *TransactionConfig) (string, error) + func (m *MultiClient) TransferNameContext(ctx context.Context, name string, recipientPubKey []byte, ...) (string, error) + func (m *MultiClient) Unsubscribe(identifier, topic string, config *TransactionConfig) (string, error) + func (m *MultiClient) UnsubscribeContext(ctx context.Context, identifier, topic string, config *TransactionConfig) (string, error) + type NanoPay struct + func NewNanoPay(rpcClient rpcClient, senderWallet *Wallet, recipientAddress, fee string, ...) (*NanoPay, error) + func (np *NanoPay) IncrementAmount(delta, fee string) (*transaction.Transaction, error) + func (np *NanoPay) Recipient() string + type NanoPayClaimer struct + func NewNanoPayClaimer(rpcClient rpcClient, recipientAddress string, claimIntervalMs, lingerMs int32, ...) (*NanoPayClaimer, error) + func (npc *NanoPayClaimer) Amount() *Amount + func (npc *NanoPayClaimer) Claim(tx *transaction.Transaction) (*Amount, error) + func (npc *NanoPayClaimer) Close() error + func (npc *NanoPayClaimer) Flush() error + func (npc *NanoPayClaimer) IsClosed() bool + func (npc *NanoPayClaimer) Recipient() string + type Node struct + Addr string + ID string + PubKey string + RPCAddr string + func GetWsAddr(clientAddr string, config RPCConfigInterface) (*Node, error) + func GetWsAddrContext(ctx context.Context, clientAddr string, config RPCConfigInterface) (*Node, error) + func GetWssAddr(clientAddr string, config RPCConfigInterface) (*Node, error) + func GetWssAddrContext(ctx context.Context, clientAddr string, config RPCConfigInterface) (*Node, error) + type NodeState struct + Addr string + CurrTimeStamp int64 + Height int32 + ID string + JSONRPCPort int32 + ProposalSubmitted int32 + ProtocolVersion int32 + PublicKey string + RelayMessageCount int64 + SyncState string + TLSJSONRpcDomain string + TLSJSONRpcPort int32 + TLSWebsocketDomain string + TLSWebsocketPort int32 + Uptime int64 + Version string + WebsocketPort int32 + func GetNodeState(config RPCConfigInterface) (*NodeState, error) + func GetNodeStateContext(ctx context.Context, config RPCConfigInterface) (*NodeState, error) + type OnConnect struct + C chan *Node + Callback OnConnectFunc + func NewOnConnect(size int, cb OnConnectFunc) *OnConnect + func (c *OnConnect) Next() *Node + type OnConnectFunc interface + OnConnect func(*Node) + type OnError struct + C chan error + Callback OnErrorFunc + func NewOnError(size int, cb OnErrorFunc) *OnError + func (c *OnError) Next() error + type OnErrorFunc interface + OnError func(error) + type OnMessage struct + C chan *Message + Callback OnMessageFunc + func NewOnMessage(size int, cb OnMessageFunc) *OnMessage + func (c *OnMessage) Next() *Message + func (c *OnMessage) NextWithTimeout(timeout int32) *Message + type OnMessageFunc interface + OnMessage func(*Message) + type RPCConfig struct + RPCConcurrency int32 + RPCTimeout int32 + SeedRPCServerAddr *nkngomobile.StringArray + func GetDefaultRPCConfig() *RPCConfig + func (c *RPCConfig) RPCGetConcurrency() int32 + func (c *RPCConfig) RPCGetRPCTimeout() int32 + func (c *RPCConfig) RPCGetSeedRPCServerAddr() *nkngomobile.StringArray + type RPCConfigInterface interface + RPCGetConcurrency func() int32 + RPCGetRPCTimeout func() int32 + RPCGetSeedRPCServerAddr func() *nkngomobile.StringArray + type Registrant struct + ExpiresAt int32 + Registrant string + func GetRegistrant(name string, config RPCConfigInterface) (*Registrant, error) + func GetRegistrantContext(ctx context.Context, name string, config RPCConfigInterface) (*Registrant, error) + type ScryptConfig struct + N int + P int + R int + Salt []byte + type Subscribers struct + Subscribers *nkngomobile.StringMap + SubscribersInTxPool *nkngomobile.StringMap + func GetSubscribers(topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func GetSubscribersContext(ctx context.Context, topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + type Subscription struct + ExpiresAt int32 + Meta string + func GetSubscription(topic string, subscriber string, config RPCConfigInterface) (*Subscription, error) + func GetSubscriptionContext(ctx context.Context, topic string, subscriber string, ...) (*Subscription, error) + type TransactionConfig struct + Attributes []byte + Fee string + FixNonce bool + Nonce int64 + func GetDefaultTransactionConfig() *TransactionConfig + func MergeTransactionConfig(conf *TransactionConfig) (*TransactionConfig, error) + type Wallet struct + func NewWallet(account *Account, config *WalletConfig) (*Wallet, error) + func WalletFromJSON(walletJSON string, config *WalletConfig) (*Wallet, error) + func (w *Wallet) Account() *Account + func (w *Wallet) Address() string + func (w *Wallet) Balance() (*Amount, error) + func (w *Wallet) BalanceByAddress(address string) (*Amount, error) + func (w *Wallet) BalanceByAddressContext(ctx context.Context, address string) (*Amount, error) + func (w *Wallet) BalanceContext(ctx context.Context) (*Amount, error) + func (w *Wallet) DeleteName(name string, config *TransactionConfig) (string, error) + func (w *Wallet) DeleteNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (w *Wallet) GetHeight() (int32, error) + func (w *Wallet) GetHeightContext(ctx context.Context) (int32, error) + func (w *Wallet) GetNonce(txPool bool) (int64, error) + func (w *Wallet) GetNonceByAddress(address string, txPool bool) (int64, error) + func (w *Wallet) GetNonceByAddressContext(ctx context.Context, address string, txPool bool) (int64, error) + func (w *Wallet) GetNonceContext(ctx context.Context, txPool bool) (int64, error) + func (w *Wallet) GetRegistrant(name string) (*Registrant, error) + func (w *Wallet) GetRegistrantContext(ctx context.Context, name string) (*Registrant, error) + func (w *Wallet) GetSubscribers(topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (w *Wallet) GetSubscribersContext(ctx context.Context, topic string, offset, limit int, meta, txPool bool, ...) (*Subscribers, error) + func (w *Wallet) GetSubscribersCount(topic string, subscriberHashPrefix []byte) (int, error) + func (w *Wallet) GetSubscribersCountContext(ctx context.Context, topic string, subscriberHashPrefix []byte) (int, error) + func (w *Wallet) GetSubscription(topic string, subscriber string) (*Subscription, error) + func (w *Wallet) GetSubscriptionContext(ctx context.Context, topic string, subscriber string) (*Subscription, error) + func (w *Wallet) MarshalJSON() ([]byte, error) + func (w *Wallet) NewNanoPay(recipientAddress, fee string, duration int) (*NanoPay, error) + func (w *Wallet) NewNanoPayClaimer(recipientAddress string, claimIntervalMs, lingerMs int32, ...) (*NanoPayClaimer, error) + func (w *Wallet) ProgramHash() common.Uint160 + func (w *Wallet) PubKey() []byte + func (w *Wallet) RegisterName(name string, config *TransactionConfig) (string, error) + func (w *Wallet) RegisterNameContext(ctx context.Context, name string, config *TransactionConfig) (string, error) + func (w *Wallet) Seed() []byte + func (w *Wallet) SendRawTransaction(txn *transaction.Transaction) (string, error) + func (w *Wallet) SendRawTransactionContext(ctx context.Context, txn *transaction.Transaction) (string, error) + func (w *Wallet) SignTransaction(tx *transaction.Transaction) error + func (w *Wallet) Subscribe(identifier, topic string, duration int, meta string, config *TransactionConfig) (string, error) + func (w *Wallet) SubscribeContext(ctx context.Context, identifier, topic string, duration int, meta string, ...) (string, error) + func (w *Wallet) ToJSON() (string, error) + func (w *Wallet) Transfer(address, amount string, config *TransactionConfig) (string, error) + func (w *Wallet) TransferContext(ctx context.Context, address, amount string, config *TransactionConfig) (string, error) + func (w *Wallet) TransferName(name string, recipientPubKey []byte, config *TransactionConfig) (string, error) + func (w *Wallet) TransferNameContext(ctx context.Context, name string, recipientPubKey []byte, ...) (string, error) + func (w *Wallet) Unsubscribe(identifier, topic string, config *TransactionConfig) (string, error) + func (w *Wallet) UnsubscribeContext(ctx context.Context, identifier, topic string, config *TransactionConfig) (string, error) + func (w *Wallet) VerifyPassword(password string) error + type WalletConfig struct + IV []byte + MasterKey []byte + Password string + RPCConcurrency int32 + RPCTimeout int32 + ScryptConfig *ScryptConfig + SeedRPCServerAddr *nkngomobile.StringArray + func GetDefaultWalletConfig() *WalletConfig + func MergeWalletConfig(conf *WalletConfig) (*WalletConfig, error) + func (c *WalletConfig) RPCGetConcurrency() int32 + func (c *WalletConfig) RPCGetRPCTimeout() int32 + func (c *WalletConfig) RPCGetSeedRPCServerAddr() *nkngomobile.StringArray