The currency of cost results

This method returns the currency of cost results if available. This is typically the reference currency of the underlying database.

RESTGET result/{result-id}/currency
IPCresult/currency
Python IPCResult.get_currency
Return typeRef[Currency]

Examples

Python IPC

JSON-RPC via Fetch API

The example below shows the usage of this method using the JSON-RPC protocol via the Fetch API which is available in modern web-browsers or platforms like Deno.

  let resp = await fetch("http://localhost:8080", {
    method: "POST",
    body: JSON.stringify({
      jsonrpc: "2.0",
      id: 1,
      method: "result/currency",
      params: {
        "@id": "66dcc7d0-ce47-46bf-b77a-ada4b4c95169",
      }
    })
  });
  let v = await resp.json();
  console.log(v);