Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

no wallet api #5

Open
Open

Description

@spicylobe

Some of the cooler language clients support the /wallet api. This would be a significant improvement to the the java client. This would seem to require:

Ideally, we could also get some helper to generate the "extended public key" necessary for HD wallets.

Activity

  1. danielalexiuc commented on Sep 5, 2017

    @danielalexiuc
    Contributor

    A wallet API would be good. In the meantime, for anyone who wants to spend from a wallet without specifying input transactions, you can do it like this:

    String transactionJson = "{" +
                            "\"inputs\":[{\"wallet_name\":\"" + WALLET_NAME + "\"," +
                            " \"wallet_token\":\"" + TOKEN + "\"}]," +
                            "\"outputs\":[{\"addresses\": [\"" + sendToAddress + "\"], " +
                            "\"value\": -1}]}"; // -1 means sweep all value from all addresses
    
                    IntermediaryTransaction unsignedTx = context.getTransactionService().newTransaction(transactionJson);
  2. quentinlesceller commented on May 6, 2020

    @quentinlesceller

    I'm tagging this as help wanted as this would be really useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions