Broadcast a signed transaction
POST/esplora/api/tx
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.
-
string
Responses
| Status | Description | Body |
|---|---|---|
200 | Accepted; the body is the txid |
|
400 | Invalid transaction hex, or sendrawtransaction RPC error: {"code":…,"message":"<reason>"} |
|
429 | Over the per-IP rate limit | |
502 | node unavailable |
|
- Source
- tensorcash-wallet-api (tensorcash-api) v1.0.0 (772799e) · bobponey · MIT
- OpenAPI spec (JSON)
- /docs/api/wallet-api.openapi.json