- Description: Initalizes wallet client
rpc
(String): RPC node so wallet can send on chainoptions
(Object): Configuration options for the wallet connection.
- Description: Connects the wallet to the website
- Parameters:
options
(Object): Configuration options for the wallet connection.
- Description: Stamp a peice of data with proof its yours
- Parameters:
data
(String): The data to be signed.options
(Object, optional): Options for signature
- Returns: A promise that resolves with the cryptographic signature.
- Description: Sign a transaction
- Parameters:
transaction
(Object): The transaction to be signedoptions
(Object, optional): Additional options for the signing process.
- Returns: A promise that resolves with the signed transaction.
- Description: Send a signed transaction
- Parameters:
signedTransaction
(Object): The signed transaction to be sent on chainoptions
(Object, optional): Additional options for sending the transaction.
- Returns: A promise that resolves with the hash of the transaction.
- Description: Sign a transaction and sends it on chain
- Parameters:
transaction
(Object): The transaction to be signed & sentoptions
(Object, optional): Additional options for the signing or sending process.
- Returns: A promise that resolves with the hash of the transaction.
- Description: Send coins to someone
- Parameters:
from
(string): Your addressto
(string): The recipents addressamount
(string | number): The amount you want to send (Denominated)options
(Object, optional): Additional options for the sendning process.
- Returns: A promise that resolves with the signed transaction hash
- Description: Waits for transaction to be confirmed and on chain
- Parameters:
transactionHash
(String): The hash of the transaction to wait for.
- Returns: A promise that resolves when the transaction is confirmed, or rejects on timeout or failure.
- Description: Retrieves the wallet address of the connected wallet.
- Returns: A promise that resolves with the active wallet address as a string.
- Description: Checks if the wallet is connected or not
- Returns: A promise that resolves with the active wallet address as a string.