This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This example will create a new deposit address for a desired currency | |
// Link to the related documentation https://www.coinpayments.net/apidoc-get-deposit-address | |
//////////////////////////////////////////////////// | |
// Fill these in from your API Keys page | |
$public_key = ''; | |
$private_key = ''; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bitcoin = require("bitcoinjs-lib"); | |
var request = require("request"); | |
//push transaction | |
function pushTX(pload, callback){ | |
request({ | |
url: "https://api.blockcypher.com/v1/btc/main/txs/push", | |
method: "POST", | |
json: true, | |
headers: {"content-type": "application/json"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$APIkey = "yourAPIkey"; //change to your apikey | |
$ClientId = "yourClientId"; //change to your clientID | |
$secret = "yourAPIsecret"; //change to your API secret, provided when you get your API key | |
$nonce = microtime(); | |
$Data = $nonce.$APIkey.$ClientId; | |
$hmac = base64_encode(hash_hmac('sha256', $Data, $secret, true)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var socket = io.connect('http://socket.coincap.io'); | |
socket.on('trades', function (tradeMsg) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +coinables is my blockchain ID. https://onename.com/coinables |
NewerOlder