Skip to content

Instantly share code, notes, and snippets.

@LAMike310
Created February 18, 2016 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LAMike310/c169621ebe3cf275b98c to your computer and use it in GitHub Desktop.
Save LAMike310/c169621ebe3cf275b98c to your computer and use it in GitHub Desktop.
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);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment