Why Nostr? What is Njump?
2023-02-12 21:18:08
in reply to

Flopper1 on Nostr: Is this code, correct? { "post": { "summary": "Broadcast Transaction", "description": ...

Is this code, correct?

{
"post": {
"summary": "Broadcast Transaction",
"description": "Sends a _signed_ transaction to the network. This is merely a low-level API endpoint",
"tags": [
"utility"
],
"parameters": [
{
"name": "transactionBytes",
"description": "The _signed_ transaction bytes in hexadecimal representation",
"required": true,
"in": "query",
"schema": {
"$ref": "../schemas/hexString.json"
}
},
{
"name": "transactionTransactionJSON",
"description": "The _signed_ transaction and _stringified_ JSON object. It's recommended to use the `transactionBytes` instead.",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Broadcast Transaction Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "The broadcast transaction response",
"required": [
"numberPeersSentTo",
"transaction",
"fullHash"
],
"example": {
"numberPeersSentTo": 15,
"transaction": "17286979857310322585",
"fullHash": "998f500297b0e7ef9e4e1c18ac7921c74d76a1aabded8c36972896f8d444a2b5"
},
"properties": {
"transaction": {
"$ref": "../schemas/transactionId.json"
},
"fullHash": {
"$ref": "../schemas/hash.json"
},
"numberPeersSentTo": {
"type": "integer",
"format": "int32"
}
}
}
}
}
},
"500": {
"$ref": "../responses/error.json"
}
}
}
}
Author Public Key
npub1cd5lsu9yxusvecwzfesh76tpf43lht0k22d0vc4u3zexk9zy6wzsjgldur