Try Install Learn Blog API Packages GitHub
Pages

Sushi.Wallet

Functions

decryptWallet
(
encryptedWallet
:
EncryptedWallet
password
:
String
)
:
Result(Wallet.Error, Wallet)
encryptWallet
(
wallet
:
Wallet
password
:
String
)
:
Result(Wallet.Error, EncryptedWallet)
generateKeyPair
:
Result(KeyPair.Error, KeyPair)
generateNewWallet
(
networkPrefix
:
String
)
:
Result(Wallet.Error, Wallet)
getFullWalletFromWif
(
wif
:
String
)
:
Result(Wallet.Error, FullWallet)
getKeyFromMnemonic
(
words
:
Array(String)
)
:
Result(Wallet.Error, String)
getMnemonic
(
hexPrivateKey
:
String
)
:
Result(Wallet.Error, Array(String))
getWalletFromWif
(
wif
:
String
)
:
Result(Wallet.Error, Wallet)
isValidAddress
(
address
:
String
)
:
Result(Wallet.Error, Bool)
signTransaction
(
hexPrivateKey
:
String
transaction
:
Transaction
)
:
Result(Wallet.Error, Transaction)
verifyTransaction
(
hexPublicKey
:
String
message
:
String
r
:
String
s
:
String
)
:
Result(Wallet.Error, Bool)