Bitcoin Forum
May 28, 2024, 02:18:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 »
341  Alternate cryptocurrencies / Speculation (Altcoins) / Re: If you could choose three altcoins to invest $100 each. on: April 01, 2017, 11:42:58 AM
1.Byteball -> New, but big potential
2.Decred
3.Dash
342  Alternate cryptocurrencies / Announcements (Altcoins) / Re: 🔹🔹🔹[ANN][BSD] BitSend -New CPU Algo XEVAN is now online -Airdrop 350+ Members on: March 23, 2017, 09:57:42 AM
I did not find anything on the website: How much reward can I expect for a masternode (per Day/ per Month)?
343  Local / Altcoins (Deutsch) / Re: [ANN] BYTEBALL: komplett neuer Konsens-Algorithmus und private Zahlungen on: March 20, 2017, 12:30:08 AM
Ich habe die Exchange in der Byteball App verwendet um mir Byteball zu kaufen. Leider habe ich mehr als 0,2 BTC an die Byteball Exchange überwiesen, obwohl das Maximum wohl bei 0,2 BTC liegt.

Jemand ne Ahnung was mit den zu viel bezahlten BTC passiert und wie ich da wieder dran komme?
344  Alternate cryptocurrencies / Announcements (Altcoins) / Re: BYTEBALL: Totally new consensus algorithm + private untraceable payments on: March 19, 2017, 02:26:02 PM
I tried to find out how scalable the byteball network actually is. Did not find any information about that topic. So how many transaction can the network handle? Does anybody know this?
345  Economy / Speculation / Re: Coindesk: If hardfork with BTU, major exchanges will list it as an Alt Coin on: March 17, 2017, 10:26:22 PM
When would a hardfork actually happen? If BU gets support > 50%? Or what is the trigger condition?
346  Local / Altcoins (Deutsch) / Re: [ANN] BYTEBALL: komplett neuer Konsens-Algorithmus und private Zahlungen on: March 16, 2017, 11:40:44 AM
Hey Leute,

ich bekomme bei der Verteilung immer 2 Byteball Zahlungen -> Einmal für die Verlinkten BTC und einmal für den Byteball-Bestand.

Ich bekomme allerdings nur eine Blackbyte Zahlung -> Werden die Blackbyte Zahlungen für verlinkte BTC und verlinkte Byteball zusammen gefasst oder bedeutet das, dass ich meine Byteball nicht korrekt verlinkt habe?

Beste Grüße
flash

Ja, die Blackbytes werden zusamengefasst berechnet und du kannst es leicht ausrechnen, denn Blackbytes sind etwas mehr als 2,1-fache der Bytes.

Ok super danke, dann passt es ja! Smiley
347  Local / Altcoins (Deutsch) / Re: [ANN] BYTEBALL: komplett neuer Konsens-Algorithmus und private Zahlungen on: March 15, 2017, 03:49:45 PM
Hey Leute,

ich bekomme bei der Verteilung immer 2 Byteball Zahlungen -> Einmal für die Verlinkten BTC und einmal für den Byteball-Bestand.

Ich bekomme allerdings nur eine Blackbyte Zahlung -> Werden die Blackbyte Zahlungen für verlinkte BTC und verlinkte Byteball zusammen gefasst oder bedeutet das, dass ich meine Byteball nicht korrekt verlinkt habe?

Beste Grüße
flash
348  Alternate cryptocurrencies / Announcements (Altcoins) / Re: BYTEBALL: Totally new consensus algorithm + private untraceable payments on: December 25, 2016, 12:02:11 PM
I've asked Tony whether the distribution block is now final:

Quote
tonych 12:56pm
yes it is now safe to move the coins out of linked addresses

i updated the transition page so that it shows the balances at block 444951, which will be used for the distribution.  The bot reports current balance which is irrelevant

Thanks for the clarification!
349  Alternate cryptocurrencies / Announcements (Altcoins) / Re: BYTEBALL: Totally new consensus algorithm + private untraceable payments on: December 25, 2016, 10:16:50 AM
I also would like to know if the snapshot already happened. There is nothing mentioned on the homepage yet.
350  Economy / Exchanges / Re: Access Poloniex trading API from JAVA on: August 25, 2016, 08:17:34 PM
So I added the nonce to the queryArgs, but still the same result Sad


Code:
    public class Poloniex {

public static String POLONIEX_SECRET_KEY = "secret"; //KEY
public static String POLONIEX_API_KEY = "api"; // TODO API KEY

public static void main(String[] args) {

try {
accessPoloniex();
} catch (IOException e) {
e.printStackTrace();
}

}
public static final long generateNonce(){

Date d = new Date();
return d.getTime();
}

public static final void accessPoloniex() throws IOException{

String nonce = new BigDecimal(Poloniex.generateNonce()).toString();

String connectionString = "https://poloniex.com/tradingApi";

String queryArgs = "command=returnDepositAddresses&nonce="+nonce;

String hmac512 = hmac512Digest(queryArgs, POLONIEX_SECRET_KEY);

// Produce the output
ByteArrayOutputStream out = new ByteArrayOutputStream();
Writer writer = new OutputStreamWriter(out, "UTF-8");
writer.append(queryArgs);


CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost post = new HttpPost(connectionString);

post.setHeader("Key", POLONIEX_API_KEY);
post.setHeader("Sign", hmac512);


// post.setHeader("Content-Type", "application/json");
post.setEntity(new ByteArrayEntity(queryArgs.getBytes()));
List<NameValuePair> params = new ArrayList<>();
params.add(new BasicNameValuePair("nonce", nonce));

CloseableHttpResponse response = null;
try
{
// post.setEntity(new UrlEncodedFormEntity(params));
response = httpClient.execute(post);

System.out.println(response.getStatusLine());

String result = EntityUtils.toString(response.getEntity());

System.out.println("result: "+result);
} finally
{
response.close();
}

}



public static String hmac512Digest(String msg, String keyString) {

Mac shaMac;
try {
shaMac = Mac.getInstance("HmacSHA512");
SecretKeySpec  keySpec = new SecretKeySpec(keyString.getBytes(), "HmacSHA512");

shaMac.init(keySpec);
final byte[] macData = shaMac.doFinal(msg.getBytes());
// return Hex.encodeHexString(macData); //again with try/catch for InvalidKeyException
return Base64.getEncoder().encodeToString(macData);
} catch (Exception e1) {
e1.printStackTrace();
}
return null;
}
}
351  Economy / Exchanges / Re: Access Poloniex trading API from JAVA on: August 25, 2016, 08:06:08 AM
i am not so familiar with Java so i can't really say anything about the rest of your code but the way you are making nonce (d.getTime()Wink is wrong. google it and you find solutions for generating nonce correctly.

The Poloniex API documentation says: Additionally, all queries must include a "nonce" POST parameter. The nonce parameter is an integer which must always be greater than the previous nonce used.

So I think an increasing number should be correct.


also your queryArgs needs nonce inside of it you generate it but never use it. add &nonce=### to your queryArgs

As I understood it, it should be just added as POST parameter as I did. But I will try to add it to the queryArgs as well.
352  Economy / Exchanges / Access Poloniex trading API from JAVA on: August 24, 2016, 08:51:43 PM

I am trying to connect to the Poloniex API with Java, followed the Poloniex documentation and came up with the following code, but for some reason, I always get the error: <b>Invalid command</b>

Any idea what I am doing wrong?
Code:

public static String POLONIEX_SECRET_KEY = "my secret"; //KEY
public static String POLONIEX_API_KEY = "my key"; // TODO API KEY


public static void main(String[] args) {

    try {
        accessPoloniex();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

}
public static final long generateNonce(){

    Date d = new Date();
    return d.getTime();
}

public static final void accessPoloniex() throws IOException{

    String nonce = new BigDecimal(Polo2.generateNonce()).toString();

    String connectionString = "https://poloniex.com/tradingApi";

    String queryArgs = "command=returnBalances";

    String hmac512 = hmac512Digest(queryArgs, POLONIEX_SECRET_KEY);

    // Produce the output
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    Writer writer = new OutputStreamWriter(out, "UTF-8");
    writer.append(queryArgs);


    CloseableHttpClient httpClient = HttpClients.createDefault();
    HttpPost post = new HttpPost(connectionString);

    post.setHeader("Key", POLONIEX_API_KEY);
    post.setHeader("Sign", hmac512);

    post.setEntity(new ByteArrayEntity(out.toByteArray()));
    List<NameValuePair> params = new ArrayList<>();
    params.add(new BasicNameValuePair("nonce", nonce));

    CloseableHttpResponse response = null;
    Scanner in = null;
    try
    {
        post.setEntity(new UrlEncodedFormEntity(params));
        response = httpClient.execute(post);
        // System.out.println(response.getStatusLine());
        HttpEntity entity = response.getEntity();
        in = new Scanner(entity.getContent());
        while (in.hasNext())
        {
            System.out.println(in.next());

        }
        EntityUtils.consume(entity);
    } finally
    {
        in.close();
        response.close();
    }

}

public static String hmac512Digest(String msg, String keyString) {

    Mac shaMac;
    try {
        shaMac = Mac.getInstance("HmacSHA512");
        SecretKeySpec  keySpec = new SecretKeySpec(keyString.getBytes(), "HmacSHA512");

        shaMac.init(keySpec);
        final byte[] macData = shaMac.doFinal(msg.getBytes());
        return Hex.encodeHexString(macData); //again with try/catch for InvalidKeyException

    } catch (Exception e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
    return null;
}
353  Economy / Exchanges / Re: Poloniex tradingApi, from JAVA on: August 23, 2016, 01:46:00 PM
I also tried to connect to the Poloniex API with Java. I followed some advice from this thread and came up with the following code, but for some reason, I always get the error: Invalid command

Any idea what I am doing wrong? Huh

Code:
public static String POLONIEX_SECRET_KEY = "my secret"; //KEY
public static String POLONIEX_API_KEY = "my key"; // TODO API KEY


public static void main(String[] args) {

    try {
        accessPoloniex();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

}
public static final long generateNonce(){

    Date d = new Date();
    return d.getTime();
}

public static final void accessPoloniex() throws IOException{

    String nonce = new BigDecimal(Polo2.generateNonce()).toString();

    String connectionString = "https://poloniex.com/tradingApi";

    String queryArgs = "command=returnBalances";

    String hmac512 = hmac512Digest(queryArgs, POLONIEX_SECRET_KEY);

    // Produce the output
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    Writer writer = new OutputStreamWriter(out, "UTF-8");
    writer.append(queryArgs);


    CloseableHttpClient httpClient = HttpClients.createDefault();
    HttpPost post = new HttpPost(connectionString);

    post.setHeader("Key", POLONIEX_API_KEY);
    post.setHeader("Sign", hmac512);

    post.setEntity(new ByteArrayEntity(out.toByteArray()));
    List<NameValuePair> params = new ArrayList<>();
    params.add(new BasicNameValuePair("nonce", nonce));

    CloseableHttpResponse response = null;
    Scanner in = null;
    try
    {
        post.setEntity(new UrlEncodedFormEntity(params));
        response = httpClient.execute(post);
        // System.out.println(response.getStatusLine());
        HttpEntity entity = response.getEntity();
        in = new Scanner(entity.getContent());
        while (in.hasNext())
        {
            System.out.println(in.next());

        }
        EntityUtils.consume(entity);
    } finally
    {
        in.close();
        response.close();
    }

}

public static String hmac512Digest(String msg, String keyString) {

    Mac shaMac;
    try {
        shaMac = Mac.getInstance("HmacSHA512");
        SecretKeySpec  keySpec = new SecretKeySpec(keyString.getBytes(), "HmacSHA512");

        shaMac.init(keySpec);
        final byte[] macData = shaMac.doFinal(msg.getBytes());
        return Hex.encodeHexString(macData); //again with try/catch for InvalidKeyException

    } catch (Exception e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
    return null;
}
354  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] WAVES. Ultimate crypto-tokens blockchain platform. on: April 12, 2016, 09:21:20 PM
Is the number of deposited coins of 3035 on the ICO landing page the correct number now?
355  Local / Altcoins (Deutsch) / Re: [PRE-ANN] WAVES. Ultimative Crypto-Token Blockchain Plattform. on: April 12, 2016, 03:20:19 PM

Ich halte mich an die Angaben auf der ICO Webseite: https://ico.wavesplatform.com/

Der andere Counter ist wohl gestopt. Der hatte schon vor Beginn des ICO Einzahlungen aufzuweisen.

Der Counter auf der ICO Website springt dagegen mal auf 1700 dann wieder 1400... sehr supekt das ganze
356  Local / Altcoins (Deutsch) / Re: [PRE-ANN] WAVES. Ultimative Crypto-Token Blockchain Plattform. on: April 12, 2016, 02:15:52 PM
https://wavesplatform.com/contract_info
hier der stand und zwar 2500 btc
ich werde nicht in waves investieren die ico ist völlig überlaufen und ich sehe keinen sinn hinter den ganzen waves-coin.
könnte die erste ico mit verlust für käufer werden am ende.

Der Stand stimmt nicht...
357  Local / Altcoins (Deutsch) / Re: [PRE-ANN] WAVES. Ultimative Crypto-Token Blockchain Plattform. on: April 12, 2016, 01:58:04 PM
Tja,  ist das jetzt gut oder schlecht? wenn der counter wieder funktioniert dann wird da wohl irgendwas mit 3500 oder mehr BTC am ersten Tag stehen  Cheesy .  Mal Abwarten und enspannt Tee trinken,,  verstehe ohnehin nicht warum jeder gleich als erstes will, als hätte man nicht den ganzen Tag Zeit dafür ))

Ich hab den Counter am Anfang verfolgt und er stand schon nach 30 Minuten bei 2500 BTC, also ich denke am Ende des Tages werden da noch deutlich mehr als 3500 BTC zusammen kommen
358  Local / Altcoins (Deutsch) / Re: [PRE-ANN] WAVES. Ultimative Crypto-Token Blockchain Plattform. on: April 12, 2016, 01:48:48 PM
Also, wenn ich das richtig sehe dann sind jetzt bereits über 2500 BTC in nur 3 1ner Stunden investiert  lOol , na das wird ja interessant. Ich verfolge das erstmal von der Seitenlinie  Cool .

Auf der Hauptseite stehen "erst" 622.50201189 BTC, woher haste das mit den 2500 BTC?

Verfolge gerade den englischen Thread, die Hauptseite zeigt offensichtlich nicht den richtigen Wert an, die Seite ist überlastet. Hier ein Link der gepostet wurde und die alle verfolgen.

https://wavesplatform.com/contract_info     Wink



Der Link hat aber wohl auch aufgehört zu zählen. Der stand schon vor einer Stunde bei 2500 BTC...
359  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] WAVES. Ultimate crypto-tokens blockchain platform. on: April 12, 2016, 01:06:26 PM
https://wavesplatform.com/contract_info stopped going up -> Is it now broken as well? ^^
360  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [PRE-ANN] WAVES. Ultimate crypto-tokens blockchain platform. on: April 12, 2016, 12:13:16 PM
Well, thats a good start, looks like the devs know how to set up a website... ^^
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!