API referenceInstance API
GUIDE & REFERENCE

Transactions

Every registered transactions instance operation, with source-derived inputs, outputs, access policy, and errors.

This reference covers 3 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.

MethodPathOperation
POST/v1/tx/beginTx begin
POST/v1/tx/commitTx commit
POST/v1/tx/abortTx abort

POST /v1/tx/begin

Tx begin

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonTxBeginReq

FieldRust typeRequired on inputNotes
actorStringYes
isolationStringYes
struct TxBeginReq {
    actor: String,
    isolation: String,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

serde_json::json!({"tx_id": tx_id.to_string()})

Errors and validation

Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3398. Registration: akasha-daemon/src/main.rs:4581.

POST /v1/tx/commit

Tx commit

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonTxIdReq

FieldRust typeRequired on inputNotes
idStringYes
struct TxIdReq {
    id: String,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

serde_json::json!({"ok": true})

Errors and validation

Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3424. Registration: akasha-daemon/src/main.rs:4582.

POST /v1/tx/abort

Tx abort

AvailabilitySource contract
Registrationconfig.enable_kv
Runtime serviceNo prefix-level service check; handler dependencies still apply.
Handler dependenciesSee handler source and return expressions.

Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.

Request

JsonTxIdReq

FieldRust typeRequired on inputNotes
idStringYes
struct TxIdReq {
    id: String,
}

Response

Declared return: Result<impl IntoResponse, DaemonError>

The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.

serde_json::json!({"ok": true})

Errors and validation

Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.

Source: akasha-daemon/src/main.rs:3442. Registration: akasha-daemon/src/main.rs:4583.

On this page