Documentation ¶
Index ¶
- Constants
- func CreateAccount(rootDir, name, password, mnemonic string) string
- func FetchtoSign(rootDir, name, password string) (privKey *ecdsa.PrivateKey, err error)
- func GetAccount(node, addr string) string
- func GetAccountERC20(node, addr, tokenAddr string) string
- func GetNonceAt(rootDir, node, fromName, password string) int64
- func GetPendingNonceAt(rootDir, node, fromName, password string) int64
- func ListLocalAccount(rootDir string) string
- func RecoverAccount(rootDir, name, password, mnemonic string) string
- func SigVerify(rootDir, name, password string, data2sign []byte)
- func SpeedTransferERC20(...) string
- func SpeedTransferETH(rootDir, node, fromName, password, toAddr, gasPrice, amount string, ...) string
- func TransferERC20(...) string
- func TransferETH(rootDir, node, fromName, password, toAddr, gasPrice, amount string, ...) string
- func UnarmorDecryptPrivKey(armorStr string, passphrase string) (*ecdsa.PrivateKey, error)
- type KeyOutput
- type LocalInfo
Constants ¶
View Source
const (
BcryptSecurityParameter = 12
)
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
CreateAccount follow the cosmos hd implementation
func FetchtoSign ¶
func FetchtoSign(rootDir, name, password string) (privKey *ecdsa.PrivateKey, err error)
FetchtoSign Fetch private key for signning
func GetAccount ¶
func GetAccountERC20 ¶
func GetNonceAt ¶
GetNonceAt return the nonce at latest block under the sepcific account.
func GetPendingNonceAt ¶
GetPendingNonceAt Deprecated in cshare for mobile! PendingNonceAt returns the account nonce of the given account in the pending state. This is the nonce that should be used for the next transaction.
func ListLocalAccount ¶
ListLocalAccount List local account
func RecoverAccount ¶
func SpeedTransferERC20 ¶
func SpeedTransferETH ¶
func SpeedTransferETH(rootDir, node, fromName, password, toAddr, gasPrice, amount string, GasLimit, pendingNonce int64) string
SpeedTransferETH Speedup Tnx with Pending nonce
func TransferERC20 ¶
func TransferERC20(rootDir, node, fromName, password, toAddr, tokenAddr, tokenValue, gasPrice string, GasLimit int64) string
TransferERC20 Transfer with ERC20 token
func TransferETH ¶
func UnarmorDecryptPrivKey ¶
func UnarmorDecryptPrivKey(armorStr string, passphrase string) (*ecdsa.PrivateKey, error)
UnarmorDecryptPrivKey Unarmor and decrypt the private key.
Types ¶
Click to show internal directories.
Click to hide internal directories.