solana-web3.js
docs as well as the Solana Cookbook.signAndSendTransaction
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 signature
.SendOptions
object as a second argument into signAndSendTransaction
or as an options
parameter when using request
.signAndSendTransaction
. It is safer for users, and a simpler API for developers, for Phantom to submit the transaction immediately after signing it instead of relying on the application to do so. If you use the methods below, Phantom will display a warning message to users.signTransaction
method on the provider, but it is also possible to do via request
. In both cases, the call will return a Promise for the signed transaction. After the transaction has been signed, an application may submit the transaction itself via web3js's sendRawTransaction
.signAllTransactions
method on the provider.