SahyadriSahyadriAPI

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

ParameterTypeRequiredDescription
transactionstringRequiredSerialized signed transaction (hex)
allowOrphanbooleanOptionalAllow 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

ParameterTypeRequiredDescription
senderstringRequiredSender address (csm1s...)
receiverstringRequiredReceiver address (csm1s...)
amountintegerRequiredAmount in Kana (1 CSM = 100,000,000 Kana)
nonceintegerRequiredAccount nonce (prevents replay)
signaturestringRequiredDilithium-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