/build/rpc / contracts / crosschain
crosschain.set_oracle_attestation
crosschain.set_oracle_attestation "swap_id" "attestation_json" Persist a verified oracle attestation for a cross-chain swap. Called by the session/watcher layer after obtaining and verifying the attestation via cosign.eth_verify_attestation. Arguments: 1. swap_id (string, required) Swap identifier 2. attestation_json (string, required) Full attestation JSON (already verified) Result: true|false (boolean) Whether the attestation was persisted Examples: > bitcoin-cli crosschain.set_oracle_attestation "swap-uuid" "{...}"
Signature
crosschain.set_oracle_attestation(swap_id: string, attestation_json: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"crosschain.set_oracle_attestation","params":["\"<swap_id>\"","\"<attestation_json>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| swap_id | string | yes | Swap identifier |
| attestation_json | string | yes | Full attestation JSON (already verified) |
Result
Type: any
true|false (boolean) Whether the attestation was persisted
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:18822
C++ symbol: crosschain_set_oracle_attestation