Send Asked Data

send_asked_dataAPI-v2send_asked_data

The send_asked_data method is a utility RPC used mainly by front-end or plugin components to reply to an earlier ask_for_data request emitted by the node.
When another part of the system (for example, a GUI) needs some data, it calls ask_for_data which broadcasts an internal DataNeeded event with a data_id.
Your component then gathers the requested information and posts it back via send_asked_data.

Request Parameters

Parameter Type Required Description
data_id integer Identifier supplied by the original DataNeeded event.
data object Arbitrary JSON value satisfying the original request.

Response Parameters

Parameter Type Required Description
result boolean true on success.

📌 Example

POST Send Asked Data send_asked_data
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "send_asked_data",
  "id": 0,
  "params": {
    "data_id": 42,
    "data": {
      "name": "Komodo"
    }
  }
}
Show Send Asked Data Response
{
  "mmrpc": "2.0",
  "result": true,
  "id": 0
}

Error Types

Parameter Type Required Description
NotFound integer No awaiting ask_for_data with the specified data_id.
Internal string Internal error while delivering data (rare).