mask-flavored-jsonrpc-api
Mask Flavored JSON RPC API
Transaction
mask_watchTransaction
Periodically retrieve the transaction receipt and cache the result in the background.
Note: The
eth_getTransactionReceiptwill read receipt from the cache instead of the RPC provider. If you really need the instant receipt you should usemask_getTransactionReceipt.
Parameters
stringthe hash of transactionconfigthe transaction config object. Learn more:eth_sendTransaction.
Returns
void
mask_unwatchTransaction
Stop watching a transaction. It means invoke eth_getTransactionReceipt with the given hash will always return null.
Parameters
stringthe hash of transaction
Returns
void
mask_getTransactionReceipt
The non-hijacked version of eth_getTransactionReceipt.
mask_replaceTransaction
Replace a transaction with the given one.
Parameters
stringthe hash of the transaction to be replacedconfigthe transaction config object. Learn more:eth_sendTransaction.
Returns
void
mask_cancelTransaction
Cancel the given transaction.
Parameters
stringthe hash of the transaction to be canceledconfigthe transaction config object. Learn more:eth_sendTransaction.
Returns
void
mask_confirmTransaction
Confirm to send a risk transaction.
Parameters
void
Returns
void
mask_rejectTransaction
Reject to send a risk transaction.
Parameters
void
Returns
void
Wallet
mask_requestAccounts
Connect to any wallet on the back of Mask Network.
Parameters
numberorvoidthe chain id of the expected chainstringorvoidthe network id of the expected chain (NetworkPluginID)
Returns
void
mask_dismissAccounts
Disconnect with the connected wallet.
Parameters
void
Returns
void