Bitcoin Forum
June 16, 2021, 09:51:54 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 »
1  Economy / Auctions / RARE 2X 1/2 Troy oz 999 Fine Silver 10 LTC Lealana Litecoin Batch #1 Unspent on: June 13, 2018, 10:04:46 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

2X Original 1/2 Troy oz 999 Fine Silver 10 LTC Lealana Litecoin Batch #1 Unspent with Original Packaging And Certificates

Starting bid: 20 LTC
Minimum bid: 0.2 LTC
Buy it now: 59 LTC

End June 17, 2018 22:00:00 GMT+00:00 and 1 minute after the last bid.
Timer: https://timer.r2net.org
Official time is Bitcointalk.org forum time.

Payment methods accepted:
 - Litecoin: ltc1qghllkr8v3jng4j9xat2fjy3cgprsrq2d547vpx
 - Bitcoin
 - Cash possible if local pickup in Montreal/Canada area.


Extra infos:
 - Bought in July 2013: https://bitcointalk.org/index.php?topic=243341.msg2790885#msg2790885
 - Include original 2-coin blue leatherette case and certificates.
 - UPS Worldwide Expedited shipping *or equivalent included.
 - I prefer to be paid before shipping but it is possible to use an escrow if the buyer agree to pay the fees.




-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEYN0KOLlaQwsm0cqvxPs+2tfMqowFAlshlKoACgkQxPs+2tfM
qoxeIwf8CPzzahdlAraALOlKlmQN/pfOyRGAFqCQPwiA1/nTCYdzycg198uZ+gE6
B7jnMiIH9vm3ThxyC7p9BzYo2UpKJZqOl2nMa8qMBhlcrQiZRpj/kZI7eOnVzsDt
Ihutn7C+FjWgYS3G/R4InwTdwe+TiktXt+xiHFRyMSNldcp8SjTbJUcJMVv8OJLw
LJ3UWHOTd36C+YDdcYKcc/QlwH+OacN7p5rh2uBvMLipk26ZaFVXIcXB+Cbe9RqJ
9PAU0DjzNkLHWHIR/pVXkZT5JOz9JDr52AAMEvQsrIC1oBhb7qtKYBYYEnz0IuY+
8gkSc6ZgCKs8zjZmIcHK+5ikKDyJpg==
=h8MF
-----END PGP SIGNATURE-----
2  Alternate cryptocurrencies / Mining (Altcoins) / MPOS configuration USE_COINDAEMON_DIFF = ? on: March 01, 2014, 01:24:36 PM
Is it ok if the pool difficulty exceed the coin difficulty?

I understand that higher pool difficulty means lower bandwidth and server load. Anything else I should consider?
3  Other / Off-topic / Need help to pick new custom PC parts on: February 22, 2014, 11:09:20 PM
This is my first custom build. This PC will be used for development and heavy virtualization with Debian as host system. I'm not a gamer. What do you think about my choices:


ASUS Z87-PLUS ATX LGA1150 Z87 DDR3 3PCI-E16 2PCI-E1 2PCI SLI SATA3 USB3.0 DVI HDMI Motherboard

Corsair CS750M CS Modular 80 Plus GOLD-RATE 750W 12V Power Supply
Intel Core i7 4770K Unlocked Quad Core 3.5GHZ Processor LGA1150 Haswell 8MB Cache Retail
Corsair Cooling Hydro Series H105 Extreme Performance 240MM CPU Cooler w/ Customizable PWM Fan Speed
2X Corsair Vengeance Black CMZ16GX3M2A1600C10 16GB 2X8GB DDR3-1600 CL10 1.5V Dual Channel Memory Kit

XFX Radeon HD 7870 Double D 1000MHZ 2GB 4.8GHZ GDDR5 DVI HDMI 2XMINIDP PCI-E Video Card
2X Nixeus 30IN Wqxga IPS High Resolution LCD Monitor 2560X1600 DVI VGA HDMI DisplayPort Speaker

Crucial M4 CT480M500SSD3 2.5in 480GB SATA III mSATA MLC Internal Solid State Drive (SSD) 7MM
2X RAID1:
Seagate Barracuda 2TB 7200RPM SATA3 64MB Cache 3.5in Internal Hard Drive


Zalman Z11 Plus Mid Tower ATX Case Black 4X5.25 1X3.5 5X3.5INT No PS Front USB3.0 & Audio
Be Quiet! Silent Wings 2 140mm 1000RPM 60.4CFM 15.8DBA Cooling Fan

My main concern are:

Does the CPU water cooler will fit with this case?
Does a 750W PSU will be sufficient for this build?
Is it possible to connect 2X Nixeus 30IN monitor on a XFX HD 7870 Double D?

Thanks for your help!
4  Alternate cryptocurrencies / Altcoin Discussion / [SCRYPT] Probability of not solo mining a block in a period of x time? on: February 09, 2014, 07:27:21 PM
I'm actually solo mining Dogecoin with my own private MPOS pool. The CoinWarz calculator tells me that I should mine one block per 0.65days however I've been mining for 2 days without solving any block.

How could I estimate the probability of not finding a block for a period of x days ? I'm wondering if I screwed something in my pool setup.
5  Bitcoin / Press / 2013-11-04 - HackingDistributed.com - Bitcoin Is Broken on: November 05, 2013, 03:28:38 AM
Quote
Bitcoin is broken. And not just superficially so, but fundamentally, at the core protocol level. We're not talking about a simple buffer overflow here, or even a badly designed API that can be easily patched; instead, the problem is intrinsic to the entire way Bitcoin works. All other cryptocurrencies and schemes based on the same Bitcoin idea, including Litecoin, Namecoin, and any of the other few dozen Bitcoin-inspired currencies, are broken as well.

The rest of the article: http://hackingdistributed.com/2013/11/04/bitcoin-is-broken/
6  Other / Off-topic / hyperboria.net on: October 19, 2013, 03:01:06 AM
Anyone has a node and could let me connect to him? I will install hyperboria on a VPS to help the network.
7  Economy / Scam Accusations / expertcoin begging via PM spam and admiting to hacking activity on: September 21, 2013, 10:43:34 PM
What a stupid PM received from expertcoin. I left him a negative feedback as a gift.

Quote
Hi,
Sorry for this PM. I'm in serious problem. I have $5000 loan and every month I have to pay interest for this loan. I have to refund this loan before 15th November 2013. So, I started this bad works.

I know maximum spamming, hijacking and hacking done by me in this forum for last 4 months. I don't like it, I love bitcoin and bitcoin community. Peoples in this forum can help me to solve my problem. I have 20 BTC shortage to reach my target. So, I decided to stop it and will request few members to donate me.

I have few hundred old accounts in my stock and everyday I'm making and posting on forum accounts for spamming. I'll surrender all my accounts to admin. I also submit a thread with the list of hacked accounts. So, every account holder will get back their account easily.

Please donate me few coins and let me stop my bad works.

My BTC address :

1KgRNNjBH5nk3xuVTTyNEJVL45fziSAycW

Thanks
8  Other / Off-topic / UK Intelligence Recruiting Code-breakers with Treasure Hunt on: September 21, 2013, 12:25:02 PM
Quote
Last year, the UK's intelligence agency made headlines with its 'Can You Crack It?' online code. This year, the campaign is called 'Can You Find It?' GCHQ describes 'Can You Find It?' as a cyber treasure hunt designed to challenge "experienced and self-taught techies." Participants will have to crack a series of codes created by GCHQ mathematicians in exchange for clues. These clues will lead users to different places around the internet and eventually unlock the final answer.
http://www.tomshardware.com/news/gchq-code-breakers-game-website-challenge,24232.html

https://canyoufindit.co.uk/

Good luck!
9  Economy / Reputation / 01BTC10 PGP key on: September 09, 2013, 02:49:37 AM
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.4
Comment: Hostname: pgpkeys.co.uk

mQINBFDrf7kBEADsNSrZFf4BVu3RkIDGaO7nR5c1EDX3Vj3aor/eCM1t6J43Y65/7EPX0vic
hGpIn2eerKN0CAqSPCx8gvLQ4bmsw2vuLIKkhGRJAWEqNH/SWxiZrTzY2jYaOBorD9xpHuMv
Zz4ukxzPSUSZoJJvNnIZBKkluNGcWE7PrFxPrbzeNVxos9rolaALDwQsCBFWU/IboozmRQuW
+d++Cboaytd0tZXE69Yl7cJU1Iq3xoB3PeAErxdAbj4UuUeiXA70eXBNlvQC0xNAWRjVXDwE
fs4FVnzD3vAhZB41wnm72UUfacZN0JQQyajpWC/69laLchL2R0iXXnocxejBjamgstRzbI0w
TcKY/fB7NyJb52qTg7J64K+Fo4BB35Ezo1KX9cZezx+tZ3h77VgMnxd3jq0XYJazayeLh4jw
BnBiHLyvjmLj1Ka9yDc/O7dz3phEPwYeFXywc5AVtrDCcRfveGL49RfFRM3he31IAhVSZXiS
hXqEGV9KvqlZdM6Rf7TlZ+lqwWMuB401xj1txQamAYyMJan722sDyBqs7jjVXMnJsH9WLoBf
hGekqHX5qAMpwS5+46xlUiw0SVgGWLLvcs4ZAowdHGPGsQBUsOdd03z4blqLTme0MtN/yNx6
lpzS1J0jBvxr2kK0wZw6+vhbx6fOt+pUdDyjxI8p2INKOVrK8wARAQABtCJPVEMtMDFCVEMx
MCAoT1RDKSA8cDJwb29sQGxpdmUuY2E+iQI4BBMBAgAiBQJQ63+5AhsDBgsJCAcDAgYVCAIJ
CgsEFgIDA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Lx5iP/+eW7BlCoZY8P+Cjt9AdnF2Ghajv4FvC94tSfgXA==
=6a2v
-----END PGP PUBLIC KEY BLOCK-----
10  Economy / Speculation / Tor traffic exploding on: August 31, 2013, 07:32:01 PM


Do you think SilkRoad volume is increasing and this has an effect on price?
11  Bitcoin / Press / 2013-08-28 Anti-virus mogul McAfee warns Canadians about government spying on: August 28, 2013, 05:01:17 PM
http://thechronicleherald.ca/canada/1150392-anti-virus-mogul-mcafee-warns-canadians-about-government-spying

Story is very interesting but the end is priceless.  Smiley

Quote
McAfee also says the growth of electronic currencies like Bitcoin is unstoppable, despite efforts by governments to curb their use.

“Things like Bitcoin are completely outside the control and the knowledge of anyone.”

To his mind, anyone who does not seriously consider electronic currency as a mode of currency exchange is “doing themselves a misservice,” given its encrypted and algorithmic protection from thievery.

“It will be everywhere and the world will have to readjust. World governments will have to readjust.”
12  Bitcoin / Press / 2013-08-23 [VIDEO] Could earning money one day resemble a real life video game? on: August 23, 2013, 11:13:44 PM
http://www.fastcoexist.com/3015875/could-earning-money-one-day-resemble-a-real-life-video-game

I like!
13  Local / Discussions générales et utilisation du Bitcoin / Guide sur les portefeuilles Bitcoin on: August 19, 2013, 01:06:49 PM
Quatre types de portefeuilles principaux:

Portefeuille complet de référence:
http://bitcoin.org/fr/telecharger

Avantages:
Plein contrôle sur les clées privés bitcoins
Contribue à la robustesse du réseau en relayant les blocs de transactions
Désavantages:
Lent à mettre à jour lors du premier démarage (plus ou moins 24h)
Authentification à 2 facteurs non disponible
Le fichier contenant les blocs de transactions est volumineux (plusieurs gigabytes)


Portefeuilles léger:
http://electrum.org/download.html
https://multibit.org/

Avantages:
Démarage initial instantané
Plein contrôle sur les clées privées
Aucun fichier volumineux
Restauration possible à partir d'un seed (phrase composée de plusieurs mots aléatoires)
Désavantage:
Les serveurs qui gèrent les blocs de transactions peuvent être compromis ce qui pourrait entrainer des effets indésirables mais les clées privées permettant de dépenser les bitcoins demeurent tout de même en sécurité sur votre ordinateur
Authentification à 2 facteurs non disponible


Portefeuille en ligne:
https://blockchain.info/

Avantages:
Démarage initial instantané
Aucun fichiers volumineux
Authentification à 2 facteurs disponible
Application mobile pour iPhone et Android disponible
Sauvegarde automatique et encrypté des clées privées par email, Dropbox ou GoogleDrive
Désavantages:
Le serveur peut être compromis ou être hors-ligne


Portefeuille sur papier
Guide en français à venir... version anglaise: https://en.bitcoin.it/wiki/Paper_wallet
Générateur de portefeuille Bitcoin: https://www.bitaddress.org/?culture=fr

Avantages:
Solution la plus sécuritaire pour éviter les vols via virus informatique
Solution idéale pour entreposage à long terme
Plus durable qu'une clée USB ou un CD-ROM si entreposé à l'abris du feu et de l'humidité
Désavantage:
Moins pratique qu'un portefeuille électronique pour effectuer des paiements rapidement
14  Local / Discussions générales et utilisation du Bitcoin / QuebecBitcoin.com on: August 14, 2013, 07:46:45 PM
Salut! Pour ceux que ça intéresse, il y a un nouveau forum de discussion local pour le Québec.

https://quebecbitcoin.com

The forum is in french but there is no problem if you want to post in english. You can activate the english template when registering.
15  Economy / Trading Discussion / Trading tracking tools on: July 17, 2013, 12:06:58 PM
I need a tool to track my daily trade in more than 1 currencies. I know there is a Bitcoin related website but can't remember the name.

Any idea?


We need some tool like Holdem Manager but adapted for Bitcoin traders. http://www.youtube.com/watch?v=v1lsTJ9bD9M&feature=share&list=PL36iaqqYaIAoFq_kZfnSlRS5jz3yUG_lf
16  Economy / Scam Accusations / Someone is using my picture of Avalon on eBay on: July 03, 2013, 03:48:36 PM
http://www.ebay.com/itm/85-gh-s-Avalon-bitcoin-miner-ASIC-/181169240800?pt=LH_DefaultDomain_0&hash=item2a2e873ae0

This is not me. My unit is in Europe since last week.
17  Economy / Computer hardware / [SOLD] IN HAND Avalon Batch #2 Bitcoin Miner with escrow on: June 21, 2013, 08:44:43 PM
1X Avalon Batch #2 Bitcoin miner with 3 modules hashing at 71GH/s. The miner will get shipped overnight (or the fastest option available) worldwide via DHL from Quebec/Canada.

Bitcoin will need to be sent to escrow within 3h or the transaction will get cancelled.

Auction start today at 18:22 EST.
Duration is 3 days.

https://www.bitmit.net/en/item/40401-in-hand-avalon-batch-2-bitcoin-miner

EDIT: Please don't send a PM with your offer. Use the Bitmit website for bidding so it's fair for everyone. Escrow service is provided by Bitmit and I will not have access to your funds until you release it.

EDIT2: I can wait more than 3 hours for payment to escrow. Please contact me on Bitmit if you need more than 3 hours to move your funds.

EDIT3: Local pick-up is available. (Quebec/Canada)





18  Economy / Economics / [PHP| BTC-E arbitrage bot on: June 17, 2013, 06:36:01 AM
I paid for this bot but I'm giving it to the community for free.
You need to have some amount of currency in all 3 currencies (USD/LTC/BTC) to use it. Then as you run it, your USD/LTC balance will decrement and your BTC balance will increment.

Code:
<?php

// Trade API settings
$key ''// your API-key
$secret ''// your Secret-key

// Limits for trading size (BTC)
// Setting the increment too small will have a negative effect on speed
$min_amount 0.1;
$max_amount 0.6;
$increment 0.02;

// Minimum profit in percent
// Must be higher than BTC-E fee * 3 to be profitable
$min_profit 1.0;

// Margin of price
// Trades will be executed this much higher/lower to make "sure" they go through
// 1.05 = 5 % and so on
$price_margin 1.05;

// Delay between requests (ms), check with BTC-E how high value they allow
// setting this too high could cause BTC-E to potentially block the bot.
$delay 100;

// Specify a minimum time between 2 trades (s). Whenever an inbalance between prices exists
// we want to quickly execute the FIRST trade, but let other arbitrage bots (with bigger balances)
// clean up the rest. Otherwise there seems to be big risk for losing trades.
$time_between_trades 10;
$last_trade_time 0;

// Required for BTC-E API
$mt explode(' 'microtime());
$nonce $mt[1];

// http://pastebin.com/QyjS3U9M
function btce_query($method, array $req = array())
{
global $key$secret$nonce;

$req['method'] = $method;
$req['nonce'] = $nonce++;

// generate the POST data string
$post_data http_build_query($req'''&');

$sign hash_hmac("sha512"$post_data$secret);

// generate the extra headers
$headers = array(
'Sign: '.$sign,
'Key: '.$key,
);

// our curl handle (initialize if required)
static $ch null;
if (is_null($ch)) {
$ch curl_init();
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
curl_setopt($chCURLOPT_USERAGENT'Mozilla/4.0 (compatible; BTC-E PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
}
curl_setopt($chCURLOPT_URL'https://btc-e.com/tapi/');
curl_setopt($chCURLOPT_POSTFIELDS$post_data);
curl_setopt($chCURLOPT_HTTPHEADER$headers);
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);

// run the query
$res curl_exec($ch);
if ($res === false)
exit('Trade API error: Connection error: ' curl_error($ch));

$dec json_decode($restrue);
if (!$dec)
exit('Trade API error: Invalid JSON.');

return $dec;
}

function 
perform_trade($trade$show_balance)
{
global $last_trade_time;

$last_trade_time time();

$reply btce_query('Trade'$trade);

if ($reply['success'] != 1)
exit('Trade error: ' $reply['error']);

if ($show_balance)
print_balance($reply);
}

function 
print_balance($response false)
{
if (!$response)
$response btce_query('getInfo');

$str "";

foreach ($response['return']['funds'] as $key => $val)
{
if ($val 0)
{
if (strlen($str) > 0)
$str .= ",";

$str .= " " $val " " strtoupper($key);
}
}

echo date("H:i:s") . ' Balance:' $str "\n";
}

// Fetch order book for a given currency pair
function order_book($pair)
{
$orders file_get_contents('https://btc-e.com/api/2/' $pair '/depth');

if ($orders === false)
exit('Public API error: Connection error.');

$dec json_decode($orders);
if (!$dec)
echo date("H:i:s") . " ERROR: Unable to fetch order book for " $pair ".\n";

return $dec;
}

// Return how big volume we can get with the given amount
function ask_volume($orders$amount)
{
$vol 0;
$value 0;

for ($i 0$i count($orders->asks) && $value $amount$i++)
{
$this_value min($orders->asks[$i][0] * $orders->asks[$i][1], $amount $value);
$this_vol $this_value $orders->asks[$i][0];

$value += $this_value;
$vol += $this_vol;
}

return $vol;
}

function 
bid_volume($orders$amount)
{
$vol 0;
$value 0;

for ($i 0$i count($orders->bids) && $value $amount$i++)
{
$this_value min($orders->bids[$i][1], $amount $value);
$this_vol $this_value $orders->bids[$i][0];

$value += $this_value;
$vol += $this_vol;
}

return $vol;
}

function 
best_bid($orders)
{
return $orders->bids[0][0];
}

function 
best_ask($orders)
{
return $orders->asks[0][0];
}

// The main function of the program
function main_loop()
{
global $min_amount$max_amount$increment$min_profit$delay$price_margin$time_between_trades$last_trade_time;

// Print some starting information
echo "BTC-E Arbitrage Bot v0.1 (CTRL+C to exit)\n";
echo "Trade amount (min/increment/max): " $min_amount " / " $increment " / " $max_amount "\n";
echo "Minimum profit: " $min_profit " %\n";
echo "Price margin: " $price_margin "\n";
echo "Delay between checks: " $delay " ms\n";
echo "Min time between trades: " $time_between_trades " s\n";

print_balance();

// Loop indefinitely (press CTRL+C to exit)
while (true)
{
// Fetch order books for all currency pairs
$btc_usd_orders order_book('btc_usd');
$ltc_btc_orders order_book('ltc_btc');
$ltc_usd_orders order_book('ltc_usd');

// Proceed if we have orders for all pairs
if ($btc_usd_orders && $ltc_btc_orders && $ltc_usd_orders)
{
$best_case 0;
$best_profit 0;
$best_amount 0;
$best_trades = array();

// Loop through different order sizes to find the one with most profit
for ($amt $min_amount$amt <= $max_amount$amt += $increment)
{
// Case 1: BTC -> LTC -> USD -> BTC
$c1_ltc ask_volume($ltc_btc_orders$amt);
$c1_usd bid_volume($ltc_usd_orders$c1_ltc);
$c1_btc ask_volume($btc_usd_orders$c1_usd);

$c1_profit $c1_btc $amt;
$c1_profit_percent = ($c1_profit 100) / $amt;

if ($c1_profit $best_profit && $c1_profit_percent $min_profit)
{
$best_case 1;
$best_profit $c1_profit;
$best_amount $amt;
$best_trades = array
(
array('pair' => 'ltc_btc''type' => 'buy''amount' => round($c1_ltc6), 'rate' => round(best_ask($ltc_btc_orders) * $price_margin3)),
array('pair' => 'ltc_usd''type' => 'sell''amount' => round($c1_ltc6), 'rate' => round(best_bid($ltc_usd_orders) / $price_margin3)),
array('pair' => 'btc_usd''type' => 'buy''amount' => round($c1_btc6), 'rate' => round(best_ask($btc_usd_orders) * $price_margin3))
);
}

// Case 2: BTC -> USD -> LTC -> BTC
$c2_usd bid_volume($btc_usd_orders$amt);
$c2_ltc ask_volume($ltc_usd_orders$c2_usd);
$c2_btc bid_volume($ltc_btc_orders$c2_ltc);

$c2_profit $c2_btc $amt;
$c2_profit_percent = ($c2_profit 100) / $amt;

if ($c2_profit $best_profit && $c2_profit_percent $min_profit)
{
$best_case 2;
$best_profit $c2_profit;
$best_amount $amt;
$best_trades = array
(
array('pair' => 'btc_usd''type' => 'sell''amount' => round($amt6), 'rate' => round(best_bid($btc_usd_orders) / $price_margin3)),
array('pair' => 'ltc_usd''type' => 'buy''amount' => round($c2_ltc6), 'rate' => round(best_ask($ltc_usd_orders) * $price_margin3)),
array('pair' => 'ltc_btc''type' => 'sell''amount' => round($c2_ltc6), 'rate' => round(best_bid($ltc_btc_orders) / $price_margin3))
);
}
}

// Execute the trades if we found one
if ($best_case 0)
{
echo date("H:i:s") . ($best_case == " LTC -> USD" " USD -> LTC") . ", Amount " $best_amount .
", Expected Profit " number_format($best_profit4) .
" (" number_format(($best_profit 100) / $best_amount2) . " %)\n";

// Check that enough time has passed from the last trade
if ((time() - $last_trade_time) < $time_between_trades)
{
echo date("H:i:s") . " Rejected (not enough time passed from last trade.\n";
}
else
{
perform_trade($best_trades[0], false);
perform_trade($best_trades[1], false);
perform_trade($best_trades[2], true);
}
}
}

// Sleep for a bit
usleep($delay 1000);
}
}

// Execute the main loop function
main_loop();

Credit: MadAlpha

If you enjoy this post you can send me a donation.

BTC: 1DB5BC85mqwdQbJaed47tWFpmn96i1YyWn
LTC: LahP2YUhSiJQaupn2AYB2iUgRSFg3n57uZ
19  Economy / Computer hardware / 16 X $25 ButterflyLabs Chips Redeem Code Auction on: June 16, 2013, 12:28:37 AM
Redeem code of $25 X 16 chips = $400
Transferred via email.

https://www.bitmit.net/en/item/39179-16-x-25-butterflylabs-chips-redeem-code
20  Economy / Goods / [ENDED] 10BTC Casascius coin with gold plated bitcoin logo on: June 10, 2013, 11:14:30 PM
I'm auctioning a 10BTC Casascius coin on Bitmit: https://www.bitmit.net/en/item/38358-rare-2012-10btc-casacius-coin-with-gold-plated-bitcoin-logo

Starting bid: 1BTC
Free expedited shipping worldwide with escrow.

Happy bidding to all!

Pages: [1] 2 3 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!