Transactions API
Broadcast transactions and query transaction details from the mempool.
RPCsubmitTransactionWrite
Broadcast a signed transaction to the network. Used by exchanges for withdrawals and wallets for sending funds. Returns transaction ID on success.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction | string | Required | Serialized signed transaction (hex) |
allowOrphan | boolean | Optional | Allow orphan transactions |
{
"id": 1,
"method": "submitTransaction",
"params": ["signed_tx_hex_string..."]
}
// Response
{
"transactionId": "8f3a9b2c1d..."
}RPCsubmitAccountTransactionWrite
Broadcast an account-based transaction. Uses the Account Model - direct balance transfer without UTXO selection. This is the primary transaction method for Sahyadri.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sender | string | Required | Sender address (csm1s...) |
receiver | string | Required | Receiver address (csm1s...) |
amount | integer | Required | Amount in Kana (1 CSM = 100,000,000 Kana) |
nonce | integer | Required | Account nonce (prevents replay) |
signature | string | Required | Dilithium-3 signature |
{
"id": 2,
"method": "submitAccountTransaction",
"params": [{
"sender": "csm1ssender...",
"receiver": "csm1sreceiver...",
"amount": 100000000,
"nonce": 42,
"signature": "dilithium_signature..."
}]
}
// Response
{
"transactionId": "9f4b3c2d1e..."
}RPCsubmitTransactionReplacementWrite
Replace a pending transaction with a higher fee version (Replace-By-Fee).
{
"id": 3,
"method": "submitTransactionReplacement",
"params": ["new_signed_tx_hex..."]
}
// Response
{
"transactionId": "new_tx_id...",
"replacedTransaction": {...}
}RPCgetMempoolEntryRead
Get details of a specific transaction from the mempool (pending, not yet in a block).
{
"id": 4,
"method": "getMempoolEntry",
"params": [{
"txId": "a1b2c3d4...",
"includeOrphanPool": true
}]
}
// Response
{
"mempoolEntry": {
"fee": 100000,
"isOrphan": false
}
}RPCgetMempoolEntriesRead
Get all current mempool transactions (pending).
{
"id": 5,
"method": "getMempoolEntries",
"params": [{
"includeOrphanPool": false,
"filterTransactionPool": false
}]
}
// Response
{
"entries": [
{
"fee": 50000,
"transaction": { ... },
"isOrphan": false
}
]
}Transaction Summary
Account
Transaction Model
Dynamic
Fee Market
Dilithium-3
Signature
5
TX Methods