walletrpc

package
v0.0.0-...-5a930d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTxData

func ClearTxData(w *wallet.Wallet) error

func CreateNewAccount

func CreateNewAccount(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

createNewAccount handles a createnewaccount request by creating and returning a new account. If the last account has no transaction history as per BIP 0044 a new account cannot be created so an error will be returned.

func DumpPrivKey

func DumpPrivKey(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

DumpPrivKey

func EvmToMeer

func EvmToMeer(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

EvmToMeer handles a evm to meer RPC request by creating a new

func GetAccountAndAddress

func GetAccountAndAddress(w *wallet.Wallet) (interface{}, error)

func GetAccountByAddress

func GetAccountByAddress(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

getAccount handles a getaccount request by returning the account name associated with a single address.

func GetAddressesByAccount

func GetAddressesByAccount(iCmd interface{}, w *wallet.Wallet) ([]string, error)

getAddressesByAccount handles a getaddressesbyaccount request by returning all addresses for an account, or an error if the requested account does not exist.

func GetBalance

func GetBalance(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

func GetBillByAddr

func GetBillByAddr(icmd interface{}, w *wallet.Wallet) (interface{}, error)

func GetListTxByAddr

func GetListTxByAddr(icmd interface{}, w *wallet.Wallet) (interface{}, error)

func GetNewAddress

func GetNewAddress(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

getNewAddress handles a GetNewAddress request by returning a new address for an account. If the account does not exist an appropiate error is returned. the gap limit.

func GetTx

func GetTx(txId string, w *wallet.Wallet) (interface{}, error)

func GetTxSpendInfo

func GetTxSpendInfo(txId string, w *wallet.Wallet) (interface{}, error)

func ImportPrivKey

func ImportPrivKey(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

func ImportWifPrivKey

func ImportWifPrivKey(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

ImportWifPrivKey

func ListAccounts

func ListAccounts(w *wallet.Wallet) (interface{}, error)

listAccounts handles a listaccounts request by returning a map of account names to their balances.

func SendLockedToAddress

func SendLockedToAddress(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

func SendToAddress

func SendToAddress(iCmd interface{}, w *wallet.Wallet) (interface{}, error)

sendToAddress handles a sendtoaddress RPC request by creating a new transaction spending unspent transaction outputs for a wallet to another payment address. Leftover inputs not sent to the payment address or a fee for the miner are sent back to a new address in the wallet. Upon success, the TxID for the created transaction is returned.

func SetSyncedToNum

func SetSyncedToNum(order int64, w *wallet.Wallet) error

func Unlock

func Unlock(password string, w *wallet.Wallet) error

func UpdateBlock

func UpdateBlock(iCmd interface{}, w *wallet.Wallet) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL