Search the Community
Showing results for tags 'wallet'.
-
Perhaps we could put one somewhere visible? Or maybe a link to a link? Idc as long as it helps me avoid eth fees!!! costs half my deposit to send my deposit!!!
-
- metamask
- connection
-
(and 2 more)
Tagged with:
-
New to BC. How's everyone doing? What is a shit code and how to find one?
-
// ==UserScript== // @name Wallet Balance // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author Devilla // @match https://bc.game/home // @grant none // ==/UserScript== (function() { 'use strict'; function getWallet(){ fetch("https://bc.game/api/user/amount/?source=", { "credentials": "include", "headers": { "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0", "Accept": "application/json, text/plain, */*", "Accept-Language": "en-US,en;q=0.5", "Cache-Control": "max-age=0", "Cookie": `${document.cookie}` }, "referrer": "https://bc.game", "method": "GET", "mode": "cors" }).then(response => response.json()) .then((data) => { let total = 0, i = 0; const res = data.data; res.map((coin)=>{ fetch(`https://api.cryptonator.com/api/ticker/${coin.currencyName.toLowerCase()}-usd`) .then(response => response.json()) .then((data) => { total = data.ticker.price * coin.amount; console.log(total, coin.currencyName); var header = document.getElementById('header'); var coinIcon = header.getElementsByClassName('coin-icon')[i]; coinIcon.src=`https://bc.game/coin/${coin.currencyName}.black.png`; var coinAmount = header.getElementsByClassName('coin-amount')[i]; coinAmount.innerHTML = total; var coinName = header.getElementsByClassName('coin-name')[i]; coinName.innerHTML = 'USD'; i++; }) .catch(err=>{}) }) }) .catch(err => console.log(err)) } getWallet(); })();