TriportRPC

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`](./getSignatureStatuses.md) or [`getTransaction`](./getTransaction.md) 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`](./simulateTransaction.md) instead.

Parameters

sendTransaction parameters
NameTypeRequiredDescription
transactionstringYes
configSendTransactionConfigNo

Returns

sendTransaction return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"sendTransaction","params":["<transaction>","<config>"]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "sendTransaction",
  "params": [
    "<transaction>",
    "<config>"
  ],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"sendTransaction","params":["<transaction>","<config>"],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. 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.