Language

Choose a language

/build/rpc / mining

validationmockdefault

mock-only

validationmockdefault "type" "value" Set a default mock response for a type (mock backend only) Arguments: 1. type (string, required) Type: quick|full|model 2. value (string, required) Default response Result: true|false (boolean) true if set Examples: > bitcoin-cli validationmockdefault quick quick_ok_smell_ok

Signature

validationmockdefault(type: string, value: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"validationmockdefault","params":["\"<type>\"","\"<value>\""]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
typestringyesType: quick|full|model
valuestringyesDefault response

Result

Type:  any

true|false (boolean) true if set

Source: services/core-node/bcore/src/rpc/custom.cpp:955

C++ symbol: validationmockdefault