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
<html> | |
Create Brain Wallet | |
<h1>BTC USD Converter</h1> | |
<input type="text" id="btc" value="1" onkeyup="return btcusd();" onchange="return btcusd();"> = | |
<input type="text" id="usd" value="<%= lastPrice %>" onkeyup="return usdbtc();" onchange="return usdbtc();"> | |
<script> | |
function btcusd(){ | |
let market_price = <%= lastPrice %>; | |
let btc_value = document.getElementById("btc").value; | |
let calc = btc_value * market_price; |
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
<!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
<?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
Verifying that +coinables is my blockchain ID. https://onename.com/coinables |
NewerOlder