wallet

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//TODO add all the rest here matey
	USDT = "tron"
)

Variables

View Source
var CurrencyBasedPaths = map[string]string{
	"USDT": "tron",
}

Functions

This section is empty.

Types

type Wallet

type Wallet struct {

	/**
	 * mnemonic seed
	 */
	Mnemonic string

	/**
	 * extended public key to derive addresses from
	 */
	Xpub string

	/**
	 * address
	 */
	Address string

	/**
	 * secret
	 */
	Secret string
}

type WalletApi added in v1.0.3

type WalletApi struct {
	BasePath string
	PathSlug string
}

func GetInstance added in v1.0.3

func GetInstance(slug string) (*WalletApi, error)

func (*WalletApi) GenerateWallet added in v1.0.3

func (wapi *WalletApi) GenerateWallet(mnemonic string) (*Wallet, error)

func (*WalletApi) GetPrivateKeyForWallet added in v1.0.8

func (wapi *WalletApi) GetPrivateKeyForWallet(mnemonic string, index int) (*response.WalletPrivateKeyResponse, error)

Jump to

Keyboard shortcuts

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