/build/rpc / contracts / crosschain
crosschain.list
crosschain.list List cross-chain execution records (full detail). Result: [ (json array) { (json object) "swap_id" : "str", (string) Swap identifier "offer_id" : "str", (string) Bulletin board offer ID "state" : n, (numeric) Current state (numeric) "payload_json" : "str", (string) Full agreed payload "local_role" : "str", (string) Our role (maker/taker) "counterparty_pubkey" : "str", (string) Counterparty Nostr pubkey "external_chain" : "str", (string) External chain "adapter" : "str", (string) Adapter kind "created_time" : n, (numeric) Creation timestamp "updated_time" : n, (numeric) Last update timestamp "external_conf_depth" : n, (numeric) External chain conf depth "tsc_conf_depth" : n, (numeric) TSC conf depth "fee_escalation_level" : n (numeric) Fee escalation level }, ... ] Examples: > bitcoin-cli crosschain.list
Signature
crosschain.list() → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"crosschain.list","params":[]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
No parameters.
Result
Type: any
[ (json array) { (json object) "swap_id" : "str", (string) Swap identifier "offer_id" : "str", (string) Bulletin board offer ID "state" : n, (numeric) Current state (numeric) "payload_json" : "str", (string) Full agreed payload "local_role" : "str", (string) Our role (maker/taker) "counterparty_pubkey" : "str", (string) Counterparty Nostr pubkey "external_chain" : "str", (string) External chain "adapter" : "str", (string) Adapter kind "created_time" : n, (numeric) Creation timestamp "updated_time" : n, (numeric) Last update timestamp "external_conf_depth" : n, (numeric) External chain conf depth "tsc_conf_depth" : n, (numeric) TSC conf depth "fee_escalation_level" : n (numeric) Fee escalation level }, ... ]
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:18609
C++ symbol: crosschain_list