Class Wallet
Namespace: haechi.face.unity.sdk.Runtime.Module
Assembly: cs.temp.dll.dll
Syntax
public class Wallet : IWallet
Methods
Call(RawTransaction)
Send contract call with raw transaction data.
Declaration
public Task<FaceRpcResponse> Call(RawTransaction request)
Parameters
| Type | Name | Description |
|---|---|---|
| RawTransaction | request | Raw transaction. This includes from, to, value, data. |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> | FaceRpcResponse. Result is given string value from blockchain. |
EstimateGas(RawTransaction)
Estimate gas with given transaction data.
Declaration
public Task<FaceRpcResponse> EstimateGas(RawTransaction transaction)
Parameters
| Type | Name | Description |
|---|---|---|
| RawTransaction | transaction | Raw transaction. This includes from, to, value, data. |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> | Estimated gas value in hex string format. |
GetBalance(String)
Get balance of given account.
Declaration
public Task<FaceRpcResponse> GetBalance(string account)
Parameters
| Type | Name | Description |
|---|---|---|
| String | account | Address to inquire balance. |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> | Rpc call response. Result is hex string balance. |
OpenHome()
Open wallet all blockchain home
Declaration
public Task<FaceRpcResponse> OpenHome()
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> |
OpenHome(OpenHomeOption)
Open wallet home by the given option parameter.
Declaration
public Task<FaceRpcResponse> OpenHome(OpenHomeOption option)
Parameters
| Type | Name | Description |
|---|---|---|
| OpenHomeOption | option | Option specifies which blockchain network show at home page. If option is given as null value, then show all blockchain networks. If option parameter is given, then at least one network should be specified in the option |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> |
SendTransaction(RawTransaction)
Send transaction with given raw transaction.
Declaration
public Task<TransactionRequestId> SendTransaction(RawTransaction request)
Parameters
| Type | Name | Description |
|---|---|---|
| RawTransaction | request | Raw transaction. This includes from, to, value, data. |
Returns
| Type | Description |
|---|---|
| Task<TransactionRequestId> |
SignMessage(String)
Sign given message.
Declaration
public Task<FaceRpcResponse> SignMessage(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | Message to sign. |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> | FaceRpcResponse. Result is signed message in string value. |
SwitchNetwork(BlockchainNetwork)
Switch Face Wallet's network
Declaration
public Task<FaceRpcResponse> SwitchNetwork(BlockchainNetwork network)
Parameters
| Type | Name | Description |
|---|---|---|
| BlockchainNetwork | network | Blockchain network. |
Returns
| Type | Description |
|---|---|
| Task<FaceRpcResponse> | FaceRpcResponse. Result is given string value from blockchain. |