On this page

Send Asked Data

API-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.

This RPC is part of the low-level event-bus mechanism and is not used in typical wallet or swap flows. It requires the data_id received from a DataNeeded event.

ParameterTypeRequiredDescription
data_idintegerIdentifier supplied by the original DataNeeded event.
dataobjectArbitrary JSON value satisfying the original request.

ParameterTypeDescription
resultbooleantrue on success.

Send Asked Data

POST
send_asked_data
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "send_asked_data",
  "id": 0,
  "params": {
    "data_id": 42,
    "data": {
      "name": "Komodo"
    }
  }
}

ParameterTypeDescription
NotFoundintegerNo awaiting ask_for_data with the specified data_id.
InternalstringInternal error while delivering data (rare).