Language

Choose a language

/build/rpc / mining

sayhello

experimental

sayhello "model_name" "model_hash" Returns a static greeting string. Arguments: 1. model_name (string, required) The address to send the newly generated cAIsh to. 2. model_hash (string, required) The address to send the newly generated cAIsh to. Result: "str" (string) Greeting message Examples: > bitcoin-cli sayhello

Signature

sayhello(model_name: string, model_hash: string) → any

Code samples

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

Parameters

NameTypeReq.Description
model_namestringyesThe address to send the newly generated cAIsh to.
model_hashstringyesThe address to send the newly generated cAIsh to.

Result

Type:  any

"str" (string) Greeting message

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

C++ symbol: sayhello