sendTransaction()
Send the signed transaction to the Solana network.
This method calls /solana/{network}/staking/send to broadcast a signed transaction to the specified network.
It is strongly recommended to verify transactions before broadcasting, see
verify().
Parameters
await client.solana.stake({
signedTransaction: transaction,
});| signedTransaction Transaction or string, required The signed transaction that needs to be broadcasted. Can be a Solana Transaction object or its base64-encoded representation. |
| network string Solana network: mainnet-beta — production network.testnet — testnet.If not specified, the method will use the default value from the constructor . |
Result
{
"transactionId": "0x0628743b05ffb4c9d5ea2144b359af38910f0ae439a685f57d85b50b9481ba3f",
"slot": "17168395",
"signerAccounts": ["9i5cTqci1W6DHdYfT7WbiNhP5DXvnPNTXvS9fTBFfuSw"],
"createdAt": "2023-08-24T08:14:50.455Z"
}| transactionId string Block hash in which the transaction was included. |
| slot number Period of time during which each leader collects transactions and creates a block in the Solana network. |
| signerAccounts string Account addresses that signed the transaction. |
| createdAt string Timestamp of the transaction in the ISO 8601 format. |
What's next?
- verifyTransaction()
- Staking API reference