sendTransaction
Last updated:
sendTransaction broadcasts an already-signed, fully-serialized transaction to
the cluster for execution. The transaction must be signed by all required
signers and contain a recent blockhash before you call this method — Triport
does not sign on your behalf.
By default the node runs a preflight check (a simulation against the
preflightCommitment bank) before forwarding the transaction. If preflight
fails, the call returns an error and the transaction is never submitted. The
method returns the transaction's first signature (base-58) as soon as it is
accepted into the processing pipeline — this is not a confirmation. Use
getSignatureStatuses or
getTransaction to poll for confirmation.
This method is available on all tiers but is throttled separately under the
sol_send_tx category, so send throughput is independent of your read-RPC
budget. To validate a transaction without submitting it, use
simulateTransaction instead.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transaction | string | Yes | |
| config | SendTransactionConfig | No |
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"sendTransaction","params":["<transaction>","<config>"],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "sendTransaction",
"params": [
"<transaction>",
"<config>"
],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"sendTransaction","params":["<transaction>","<config>"],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- Credit cost: 5 per call.
FAQ
- What does sendTransaction do?
- Submits a fully-signed transaction to the Solana cluster for processing and returns its signature.
- How many credits does sendTransaction cost?
- sendTransaction costs 5 credit(s) per call on Triport by default.
- Is sendTransaction available over WebSocket?
- sendTransaction is an HTTP JSON-RPC method.