docs/docs/build/rpc-api/daemon-rpc-api/getrandom_outs.md
zano build machine ccf9753dbd Auto generated doc
2025-05-05 21:01:10 +03:00

1 KiB

Retrieve random decoy outputs for specified amounts (legacy format).

URL: http:://127.0.0.1:11211/json_rpc

Request:

{
  "id": 0,
  "jsonrpc": "2.0",
  "method": "getrandom_outs",
  "params": {
    "amounts": [0,10000000000],
    "outs_count": 2,
    "use_forced_mix_outs": false
  }
}

Request description:

    "amounts": List of amounts for which decoy outputs are requested.
    "outs_count": Number of decoy outputs requested for each amount.
    "use_forced_mix_outs": If true, only outputs with a 'mix_attr' greater than 0 are used as decoys.

Response:

{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "outs": [{
      "amount": 10000000000
    }],
    "status": "OK"
  }
}

Response description:

    "outs": List of 'outs_for_amount' structures, each containing decoys for a specific amount.
      "amount": The amount for which decoys are returned.
    "status": Status of the call.

Auto-doc built with: 2.1.6.402[ef0a47c]