Bitcoin Core
31.99.0
P2P Digital Currency
src
interfaces
rpc.h
Go to the documentation of this file.
1
// Copyright (c) 2025 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_INTERFACES_RPC_H
6
#define BITCOIN_INTERFACES_RPC_H
7
8
#include <memory>
9
#include <string>
10
11
class
UniValue
;
12
13
namespace
node
{
14
struct
NodeContext;
15
}
// namespace node
16
17
namespace
interfaces
{
19
class
Rpc
20
{
21
public
:
22
virtual
~Rpc
() =
default
;
23
virtual
UniValue
executeRpc
(
UniValue
request, std::string
url
, std::string user) = 0;
24
};
25
27
std::unique_ptr<Rpc>
MakeRpc
(
node::NodeContext
&
node
);
28
29
}
// namespace interfaces
30
31
#endif
// BITCOIN_INTERFACES_RPC_H
UniValue
Definition:
univalue.h:22
interfaces::Rpc
Interface giving clients ability to emulate HTTP RPC calls.
Definition:
rpc.h:20
interfaces::Rpc::~Rpc
virtual ~Rpc()=default
interfaces::Rpc::executeRpc
virtual UniValue executeRpc(UniValue request, std::string url, std::string user)=0
interfaces
Definition:
interfaces.cpp:41
interfaces::MakeRpc
std::unique_ptr< Rpc > MakeRpc(node::NodeContext &node)
Return implementation of Rpc interface.
Definition:
interfaces.cpp:1058
node
Definition:
messages.h:21
url
const char * url
Definition:
rpcconsole.cpp:61
node::NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:56
Generated on Wed Apr 1 2026 20:00:30 for Bitcoin Core by
1.9.4