started work on /checkandpush

master
moneroexamples 8 years ago
parent d25213b998
commit 119afa0e37

@ -216,8 +216,11 @@ int main(int ac, const char* av[]) {
CROW_ROUTE(app, "/checkandpush").methods("POST"_method) CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
([&](const crow::request& req) { ([&](const crow::request& req) {
string rawtxdata = string(req.url_params.get("rawtxdata")); //string rawtxdata = string(req.post().get("rawtxdata"));
cout << rawtxdata << endl; //crow::query_string post_data = crow::query_string(req.body);
//cout << post_data.get("rawtxdata") << endl;
cout << req.body << endl;
return xmrblocks.show_checkandpushtx(); return xmrblocks.show_checkandpushtx();
}); });

@ -3,7 +3,7 @@
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a> <a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a>
</h5> </h5>
<h6 style="margin-top:10px"> <h6 style="margin-top:10px">
Help support the hosting and maintenance of the Onion Monero Blockchain Explorer by donating to: <br/> Help support the hosting and maintenance of this service by donating to: <br/>
48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU 48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU
</h6> </h6>

@ -142,10 +142,10 @@
Paste base64 encoded, signed transaction data here<br/> Paste base64 encoded, signed transaction data here<br/>
<textarea name="rawtxdata" rows="20" cols="80"></textarea> <textarea name="rawtxdata" rows="20" cols="80"></textarea>
<br/> <br/>
<input type="submit" value="check"> <input type="submit" name="action" value="check">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<input type="submit" value="push"> <input type="submit" name="action" value="push">
</form> </form>
</div> </div>
{{/testnet}} {{/testnet}}

Loading…
Cancel
Save