Package com.xeiam.xchange.coinbase.dto.account

Examples of com.xeiam.xchange.coinbase.dto.account.CoinbaseAddress


   * @return The user’s current {@code CoinbaseAddress}.
   * @throws IOException
   */
  public CoinbaseAddress getCoinbaseReceiveAddress() throws IOException {

    final CoinbaseAddress receiveResult = coinbase.getReceiveAddress(exchangeSpecification.getApiKey(), signatureCreator, getNonce());
    return receiveResult;
  }
View Full Code Here


   * @throws IOException
   */
  public CoinbaseAddress generateCoinbaseReceiveAddress(final String callbackUrl, final String label) throws IOException {

    final CoinbaseAddressCallback callbackUrlParam = new CoinbaseAddressCallback(callbackUrl, label);
    final CoinbaseAddress generateReceiveAddress = coinbase.generateReceiveAddress(callbackUrlParam, exchangeSpecification.getApiKey(), signatureCreator, getNonce());

    return handleResponse(generateReceiveAddress);
  }
View Full Code Here

  }

  @Override
  public String requestDepositAddress(String currency, String... arguments) throws IOException {

    final CoinbaseAddress receiveAddress = super.getCoinbaseReceiveAddress();
    return receiveAddress.getAddress();
  }
View Full Code Here

    System.out.println(isAccepted);
  }

  private static void demoAddresses(CoinbaseAccountService accountService) throws IOException {

    CoinbaseAddress receiveAddress = accountService.getCoinbaseReceiveAddress();
    System.out.println(receiveAddress);

    CoinbaseAddress generatedReceiveAddress = accountService.generateCoinbaseReceiveAddress("http://www.example.com/callback", "test");
    System.out.println(generatedReceiveAddress);

    CoinbaseAddresses addresses = accountService.getCoinbaseAddresses();
    System.out.println(addresses);
  }
View Full Code Here

TOP

Related Classes of com.xeiam.xchange.coinbase.dto.account.CoinbaseAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.