bchwallet: github.com/gcash/bchwallet/mobile Index | Files

package mobile

import "github.com/gcash/bchwallet/mobile"


Package Files


func StartWallet Uses

func StartWallet(configPath string)

StartWallet is the function exposed to the mobile device to start the bchwallet. configPath is the path to the bchwallet.conf file that should be saved on your mobile device.

Make sure you save in the config file the correct path on the device to use for `appdata`. You will likely also want to the `noinitalload` option to prevent the wallet from blocking startup as it waits for input from stdin.

Once the wallet is started you will want to control it using the gRPC API. A `CreateWallet` RPC is available which you will need to call first.

func StopWallet Uses

func StopWallet()

StopWallet will stop the wallet and perform a clean shutdown.

Package mobile imports 3 packages (graph). Updated 2019-04-07. Refresh now. Tools for package owners.