You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttx=awaitmyToken.send("mint",[toAddr,amount])console.log("tx:",tx)// Wait for 3 confirmations. The callback receives the// updated transaction info for each additional confirmation.//// Both arguments are optional. `await tx.confirm()` would do.constreceipt=awaittx.confirm(3,(updatedTx)=>{console.log("new confirmation",updatedTx.txid,updatedTx.confirmations)})
Because the QTUM RPC calls return very different data than Ethereum's RPC, it's probably more realistic to fork qtumjs, and implement a few things as an experiment.
The text was updated successfully, but these errors were encountered:
It would be an interesting exercise to reimplement QtumJS's RPCs to make it work in MetaMask.
The RPC methods related to invoking a contract's methods are:
Confirming A Send Tx
The
send
API looks likeThe
confirm
method is implemented in TxReceiptPromiseBecause the QTUM RPC calls return very different data than Ethereum's RPC, it's probably more realistic to fork qtumjs, and implement a few things as an experiment.
The text was updated successfully, but these errors were encountered: