MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetMemo

Function GetMemo

src/rpc/rpcdex.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 string GetMemo(const Array& params, const size_t index) {
149 if (params.size() > index) {
150 string memo = params[index].get_str();
151 if (memo.size() > MAX_COMMON_TX_MEMO_SIZE)
152 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("memo.size=%u is large than %llu",
153 memo.size(), MAX_COMMON_TX_MEMO_SIZE));
154 return memo;
155 }
156 return "";
157 }
158
159 OpenMode GetOrderOpenMode(const Value &jsonValue) {
160 OpenMode ret = OpenMode::PRIVATE;

Callers 6

submitdexbuylimitordertxFunction · 0.85
gendexoperatorordertxFunction · 0.85
submitdexoperatorregtxFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected