neomobile

package
v0.0.0-...-82ce76d Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAddress

func DecodeAddress(address string) (string, error)

DecodeAddress decode address

func EncodeAddress

func EncodeAddress(address string) (string, error)

EncodeAddress encode address

Types

type Tx

type Tx struct {
	Data string
	ID   string
}

Tx neo rawtx wrapper

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

Wallet neo mobile wallet

func FromKeyStore

func FromKeyStore(ks string, password string) (*Wallet, error)

FromKeyStore create wallet from keystore

func FromMnemonic

func FromMnemonic(mnemonic string) (*Wallet, error)

FromMnemonic create wallet from mnemonic

func FromWIF

func FromWIF(wif string) (*Wallet, error)

FromWIF create wallet from wif

func New

func New() (*Wallet, error)

New create a new wallet

func (*Wallet) Address

func (wrapper *Wallet) Address() string

Address get wallet address

func (*Wallet) CreateAssertTx

func (wrapper *Wallet) CreateAssertTx(assert, from, to string, amount float64, unspent string) (*Tx, error)

CreateAssertTx create assert transfer raw tx

func (*Wallet) CreateClaimTx

func (wrapper *Wallet) CreateClaimTx(amount float64, address string, unspent string) (*Tx, error)

CreateClaimTx create claim tx

func (*Wallet) CreateNep5Tx

func (wrapper *Wallet) CreateNep5Tx(asset string, from, to string, gas float64, amount int64, unspent string) (*Tx, error)

CreateNep5Tx create nep5 transfer transaction

func (*Wallet) MintToken

func (wrapper *Wallet) MintToken(asset string, gas, amount float64, unspent string) (*Tx, error)

MintToken .

func (*Wallet) Mnemonic

func (wrapper *Wallet) Mnemonic() (string, error)

Mnemonic gete mnemonic string

func (*Wallet) ToKeyStore

func (wrapper *Wallet) ToKeyStore(password string) (string, error)

ToKeyStore write wallet to keystore format string

Jump to

Keyboard shortcuts

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