submit_directive
Submit one Beancount directive (open, transaction, close, balance, price, note, document — any type). Paid, except your first 20 accepted writes per registered key, which are free (this specific tool only — submit_batch is always paid, even for your first call). Call with no payment_header first: if free writes remain, this succeeds immediately; otherwise you'll get price/asset/recipient back, so you can retry with payment_header set to your signed X-PAYMENT-equivalent payload (fresh nonce required on the retry — each call is independently signed).
Parameters6
| text | string | required | |
| public_key | string | required | |
| nonce | string | required | |
| timestamp | string | required | |
| signature | string | required | |
| payment_header | any | optional |
Raw schema
{
"type": "object",
"properties": {
"text": {
"title": "Text",
"type": "string"
},
"public_key": {
"title": "Public Key",
"type": "string"
},
"nonce": {
"title": "Nonce",
"type": "string"
},
"timestamp": {
"title": "Timestamp",
"type": "string"
},
"signature": {
"title": "Signature",
"type": "string"
},
"payment_header": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Payment Header"
}
},
"required": [
"text",
"public_key",
"nonce",
"timestamp",
"signature"
],
"title": "submit_directiveArguments"
}