createmodeldeposit
- workflowrun-a-miner·step 1 of 6Workflow: run-a-miner · step 1 of 6
createmodeldeposit "model_name" "model_commit" difficulty_multiplier ( "model_cid" "additional_data" ) Create and broadcast a model registration deposit transaction. Arguments: 1. model_name (string, required) Model repository identifier 2. model_commit (string, required) Model commit hash or version 3. difficulty_multiplier (numeric, required) Declared model difficulty multiplier 4. model_cid (string, optional) Optional IPFS CID or reference 5. additional_data (string, optional) Optional metadata blob Result: { (json object) Deposit transaction details "txid" : "str", (string) Transaction id of the broadcast deposit "model_hash" : "str", (string) Computed model hash "deposit_address" : "str", (string) Generated owner address controlling the deposit "deposit_vout" : n, (numeric) Output index locking the deposit "deposit_amount" : n (numeric) Amount locked in the deposit output } Examples: > bitcoin-cli createmodeldeposit "tensor/model" "commit123" 1000000
Signature
createmodeldeposit(model_name: string, model_commit: string, difficulty_multiplier: number, model_cid?: string, additional_data?: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"createmodeldeposit","params":["\"<model_name>\"","\"<model_commit>\"",0,"\"<model_cid>\"","\"<additional_data>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| model_name | string | yes | Model repository identifier |
| model_commit | string | yes | Model commit hash or version |
| difficulty_multiplier | number | yes | Declared model difficulty multiplier |
| model_cid | string | — | Optional IPFS CID or reference |
| additional_data | string | — | Optional metadata blob |
Result
Type: any
{ (json object) Deposit transaction details "txid" : "str", (string) Transaction id of the broadcast deposit "model_hash" : "str", (string) Computed model hash "deposit_address" : "str", (string) Generated owner address controlling the deposit "deposit_vout" : n, (numeric) Output index locking the deposit "deposit_amount" : n (numeric) Amount locked in the deposit output }
Source: services/core-node/bcore/src/wallet/rpc/transactions.cpp:1022
C++ symbol: createmodeldeposit