Skip to content

Instantly share code, notes, and snippets.

View LAMike310's full-sized avatar

Mike Gnanakone LAMike310

  • Los Angeles
View GitHub Profile
var axios = require('axios')
axios.post('https://api.blockcypher.com/v1/bcy/test/txs/push',
{"tx": "01000000015e9d654ccdf376c21502152ad7eba61027c5860f35557729a45e356a7cdc9ad6000000008a47304402201f06d4679b3f835215c338bace1d8b317aeade5346309389b60f4d7753f5a710022033d9e5aafdd4154889b6ab71eb927b8879eeb3dc9c6c2e665e665485f71a4e0b014104f0087a849a6e9ebc5b3fb9090849a22b72c71564e165458a9957150a7dd24639f1f60746cbfa25950ec9bc7064a77141a78c5a309ff7cc0b90050e8a6a1a8ed7ffffffff02da210000000000001976a914fed9eb51a9d13032e4cf2d6a4856fe8bde18b18c88ac0000000000000000546a4c5177723335322d33316472342d4141412d30322d31362d31352d32336f6c2d313030303030303030302d33323132322d333435352d363933352d323334392d323334302d31323333322d30322d31302d313500000000"}
)
.then(function (response) {
console.log(response.data);
})
.catch(function (response) {
console.log(response.data);
});
@LAMike310
LAMike310 / broadcast.js
Created February 17, 2016 21:26
Push Raw Bitcoin Transaction using Blockcypher
var axios = require('axios')
axios.post('https://api.blockcypher.com/v1/bcy/test/txs/push',
{"tx":"01000000011935b41d12936df99d322ac8972b74ecff7b79408bbccaf1b2eb8015228beac8000000006b483045022100921fc36b911094280f07d8504a80fbab9b823a25f102e2bc69b14bcd369dfc7902200d07067d47f040e724b556e5bc3061af132d5a47bd96e901429d53c41e0f8cca012102152e2bb5b273561ece7bbe8b1df51a4c44f5ab0bc940c105045e2cc77e618044ffffffff0240420f00000000001976a9145fb1af31edd2aa5a2bbaa24f6043d6ec31f7e63288ac20da3c00000000001976a914efec6de6c253e657a9d5506a78ee48d89762fb3188ac00000000"}
)
.then(function (response) {
console.log(response.data);
})
.catch(function (response) {
console.log(response.data);
});
Verifying that +lamike is my Bitcoin username. You can send me #bitcoin here: https://onename.io/lamike
I am LAMike on Onename.io
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bank of America</title>
<style type="text/css">
/*Hotmail/Outlook.com Styles*/
.ExternalClass * {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bank of America</title>
<style type="text/css">
/*Hotmail/Outlook.com Styles*/
.ExternalClass * {
@LAMike310
LAMike310 / gist:6137db771a8ef7906003
Last active August 29, 2015 14:04
HTML Email Starter Template
<html>
<style>
/* Client-specific Styles */
#outlook a {
padding: 0;
}
/* Force Outlook to provide a "view in browser" button. */
body {
width: 100% !important;
}