/build/rpc / contracts / repo
repo.import_repay_address
repo.import_repay_address {"offer_id":"hex","commitment":"hex","repay_address":"str","xonly":"hex","internal_xonly":"hex"} Import a repayment override payload provided by the counterparty. Arguments: 1. payload (json object, required) Payload returned by repo.update_repay_address { "offer_id": "hex", (string, required) Repo identifier "commitment": "hex", (string, required) Offer commitment for validation "repay_address": "str", (string, required) Updated repayment address (Taproot) "xonly": "hex", (string, required) X-only pubkey of the new Taproot address "internal_xonly": "hex", (string, optional) Untweaked internal Taproot pubkey of the new address } Result: { (json object) "id" : "hex", (string) Repo identifier "repay_address" : "str", (string) Imported repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey of the imported address "internal_xonly" : "hex" (string, optional) Untweaked internal Taproot pubkey of the imported address } Examples: > bitcoin-cli repo.import_repay_address "{\"offer_id\":\"...\",\"repay_address\":\"bcrt1p...\"}"
Signature
repo.import_repay_address(payload: object) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"repo.import_repay_address","params":[{}]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| payload | object | yes | Payload returned by repo.update_repay_address { "offer_id": "hex", (string, required) Repo identifier "commitment": "hex", (string, required) Offer commitment for validation "repay_address": "str", (string, required) Updated repayment address (Taproot) "xonly": "hex", (string, required) X-only pubkey of the new Taproot address "internal_xonly": "hex", (string, optional) Untweaked internal Taproot pubkey of the new address } |
Result
Type: any
{ (json object) "id" : "hex", (string) Repo identifier "repay_address" : "str", (string) Imported repayment address "xonly" : "hex", (string) Tweaked (output) Taproot pubkey of the imported address "internal_xonly" : "hex" (string, optional) Untweaked internal Taproot pubkey of the imported address }
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:7023
C++ symbol: repo_import_repay_address