Sign and Send Transaction
Once a transaction is created, the web application may ask the user's OneKey wallet to sign and send the transaction using their account's private key and NEAR JSON RPC connection.
By far the easiest and recommended way of doing this is by using the requestSignTransactions
method on the provider, but it is also possible to do with request
.
In both cases, the call will return a Promise for an object containing the transactionHashes
.
Also transaction can be serialized to base64
string first before method calling.
Last updated