Wallet
Last updated
Was this helpful?
Last updated
Was this helpful?
Most of the wallet functionality is insecure / meant for development testing. To connect Wallets with Dapps/Dgames securely, we bring the open communications protocol for web3 into Unreal Engine. Please check .
The following functions are members of DefiWalletCoreActor. The Target should be Defi Wallet Core Actor.
Restore wallet with mnemonics and password.
Mnemonics
: mnemonics to restore
Password
: salt in mnemonics restoration
Output
: generated address (index=0)
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Create a new wallet with password and wordcount.
Password
: salt in mnemonics restoration
Wordcount
: mnemonics word count (12, 18, 24)
Output
: generated address (index=0)
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Get backup mnemonic phrase.
Output
: backup mnemonics
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Generate mnemonics.
Password
: salt in mnemonics restoration
Wordcount
: mnemonics word count (12, 18, 24)
Output
: generated mnemonics
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Get eth address with index
Index
: wallet index which starts from 0
Output
: get eth address
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Get eth balance
Address
: eth address
Output
: get balance
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Sign eth amount
Wallet Index
: wallet index which starts from 0
Fromaddress
: sender address
Toaddress
: receiver address
Amount
: amount in eth decimal, eg. 0.1 means 0.1 eth
Gas Limit
: gas limit, fee= gasLimit * gasPrice
Gas Price
: gas price in wei, eg. 1wei= 1/(10^18)eth 1wei=1/(10^9)gwei
Txdata
: optional data
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Return Value
: signed transaction as bytes
Send eth amount
Wallet Index
: wallet index which starts from 0
Fromaddress
: sender address
Toaddress
: receiver address
Amount in Eth Decimal
: amount in eth decimal, eg. 0.1 means 0.1 eth
Gas Limit
: gas limit, fee= gasLimit * gasPrice
Gas Price in Wei
: gas price in wei, eg. 1wei= 1/(10^18)eth 1wei=1/(10^9)gwei
Txdata
: optional data
Out
: SendEthAmount callback
Sign eth login
Wallet Index
: wallet index which starts from 0
Document
: document to sign
Signature
: get signature
Success
: whether succeed or not
Output Message
: error message, "" if succeed
Verify eth login
Document
: document to verify
Signature
: signature to verify
Success
: whether succeed or not
Output Message
: error message, "" if succeed