The SDK provides a simple, unified interface that handles both signing AND sending transactions:
Copy
Ask AI
const signedResult = await sdk.signAndSendTransaction({ walletId, // The wallet to sign with transaction, // Web3.js transaction object, or evm ones networkId // Target network});// The SDK automatically submits the transaction to the blockchain!// You get back the signed transaction to extract the signature
The signAndSendTransaction method does two things automatically:
Signs the transaction with the wallet’s private key
Submits the signed transaction to the blockchain network
You don’t need to manually submit the transaction - the SDK handles this for you!
The Server SDK is a beta version, and Phantom will not be liable for any losses or damages suffered by you or your end users.
Any suggestions, enhancement requests, recommendations, or other feedback provided by you regarding the Server SDK will be the exclusive property of Phantom. By using this beta version and providing feedback, you agree to assign any rights in that feedback to Phantom.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.