Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2025 The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_INTERFACES_RPC_H6#define BITCOIN_INTERFACES_RPC_H8#include <memory>9#include <string>11class UniValue;13namespace node {14struct NodeContext;15} // namespace node17namespace interfaces {18//! Interface giving clients ability to emulate HTTP RPC calls.19class Rpc20{21public:22virtual ~Rpc() = default;23virtual UniValue executeRpc(UniValue request, std::string url, std::string user) = 0;24};26//! Return implementation of Rpc interface.27std::unique_ptr<Rpc> MakeRpc(node::NodeContext& node);29} // namespace interfaces31#endif // BITCOIN_INTERFACES_RPC_H