IoTeX client
rpc.h
1#ifndef RPC_H
2#define RPC_H
3
4#include <cstdio>
5#include <map>
6#include <string>
7
8#include "host/host.h"
9#include "protobuf/pb_api.h"
10
11namespace iotex
12{
13namespace api
14{
15namespace rpc
16{
18{
19 IotexString url;
20 IotexString body;
21};
22
28{
29 public:
30 static RpcCallData getAccount(Host& host, const IotexString address);
31 static RpcCallData getBalance(Host& host, const IotexString address);
32 static RpcCallData getActionByHash(Host& host, const IotexString hash,
33 bool checkPending = false);
34 static RpcCallData sendTokenTransfer(Host& host,
36 const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE],
37 const uint8_t signature[IOTEX_SIGNATURE_SIZE]);
38 static RpcCallData sendExecution(Host& host,
40 const uint8_t senderPubKey[IOTEX_PUBLIC_KEY_SIZE],
41 const uint8_t signature[IOTEX_SIGNATURE_SIZE]);
42};
43
44} // namespace rpc
45} // namespace api
46} // namespace iotex
47
48#endif
Definition: host.h:17
A class with methods to generate RPC data.
Definition: rpc.h:28
Definition: abi.h:12
Definition: rpc.h:18