Skip to content

Instantly share code, notes, and snippets.

Created Mar 17, 2015
What would you like to do?
Sending a transaction in the browser
<!doctype html>
<script src="//"></script>
<p>Balance: <span id="balance"></span></p>
<script type="text/javascript">
var api_key_id = '[redacted]';
var url = '';
type: 'POST',
url: url,
headers: {"Authorization": "Basic " + btoa(api_key_id)},
contentType: 'application/json',
processData: false,
data: JSON.stringify({"signed_hex": "[redacted]"}),
success: function(response) {
error: function(err) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment