/build/rpc / contracts / repo
repo.update_repay_address
repo.update_repay_address "id" "address" Update the lender repayment destination for an accepted repo contract. The new address must be Taproot (bech32m). Arguments: 1. id (string, required) Repo offer identifier 2. address (string, required) New repayment address (Taproot) Result: { (json object) "id" : "hex", (string) Repo identifier "repay_address" : "str", (string) Updated repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey for the repayment address "internal_xonly" : "hex", (string) Untweaked internal Taproot pubkey for the repayment address "share" : { (json object) Payload the counterparty must import "offer_id" : "hex", (string) Repo identifier "commitment" : "hex", (string) Offer commitment for validation "repay_address" : "str", (string) Updated repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey of the new address "internal_xonly" : "hex" (string) Untweaked internal Taproot pubkey of the new address } } Examples: > bitcoin-cli repo.update_repay_address "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "bcrt1p..."
Signature
repo.update_repay_address(id: string, address: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"repo.update_repay_address","params":["\"<id>\"","\"<address>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| id | string | yes | Repo offer identifier |
| address | string | yes | New repayment address (Taproot) |
Result
Type: any
{ (json object) "id" : "hex", (string) Repo identifier "repay_address" : "str", (string) Updated repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey for the repayment address "internal_xonly" : "hex", (string) Untweaked internal Taproot pubkey for the repayment address "share" : { (json object) Payload the counterparty must import "offer_id" : "hex", (string) Repo identifier "commitment" : "hex", (string) Offer commitment for validation "repay_address" : "str", (string) Updated repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey of the new address "internal_xonly" : "hex" (string) Untweaked internal Taproot pubkey of the new address } }
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:6938
C++ symbol: repo_update_repay_address