Broadcast a signed transaction

POST/esplora/api/tx

Wallet API v1.0.0 · Transactions

Submits an already-signed transaction. No key reaches the server; it cannot alter the transaction without invalidating its signatures. The node first validates it (testmempoolaccept); an invalid transaction is rejected with the node's reason and never relayed. A valid one is sent to the local node and relayed to the other nodes. The node's default maxfeerate (0.1 TSC/kvB) rejects absurd fees. Limits: 10 requests per minute per IP (burst 20), body up to 256 KB, hex up to 200 000 characters.

Example

curl -X POST 'https://api.tensorcash.org/esplora/api/tx' \
  -H 'Content-Type: text/plain' \
  --data '<signed transaction hex>'

Parameters

No parameters.

Request body

The raw signed transaction as hex text.

  • text/plain string

Responses

StatusDescriptionBody
200Accepted; the body is the txid
  • text/plain string
400Invalid transaction hex, or sendrawtransaction RPC error: {"code":…,"message":"<reason>"}
  • text/plain string
429Over the per-IP rate limit
502node unavailable
  • text/plain string
Source
tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT