forked from Qortal/qortal
using public key for address infos
This commit is contained in:
parent
87a7b9df08
commit
9671c2da61
@ -31,6 +31,8 @@ public abstract class BitcoinyTests extends Common {
|
||||
|
||||
protected abstract String getDeterministicKey58();
|
||||
|
||||
protected abstract String getDeterministicPublicKey58();
|
||||
|
||||
protected abstract String getRecipient();
|
||||
|
||||
@Before
|
||||
@ -154,12 +156,24 @@ public abstract class BitcoinyTests extends Common {
|
||||
@Test
|
||||
public void testWalletAddressInfos() throws ForeignBlockchainException {
|
||||
|
||||
String xprv58 = getDeterministicKey58();
|
||||
String key58 = getDeterministicPublicKey58();
|
||||
|
||||
List<AddressInfo> addressInfos = this.bitcoiny.getWalletAddressInfos(xprv58);
|
||||
List<AddressInfo> addressInfos = this.bitcoiny.getWalletAddressInfos(key58);
|
||||
|
||||
System.out.println("address count = " + addressInfos.size() );
|
||||
System.out.println( "address infos ..." );
|
||||
addressInfos.forEach( System.out::println );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWalletSpendingCandidateAddresses() throws ForeignBlockchainException {
|
||||
|
||||
String xpub58 = getDeterministicPublicKey58();
|
||||
|
||||
List<String> candidateAddresses = this.bitcoiny.getSpendingCandidateAddresses(xpub58);
|
||||
|
||||
System.out.println("candidate address count = " + candidateAddresses.size() );
|
||||
System.out.println( "candidate addresses ..." );
|
||||
candidateAddresses.forEach( System.out::println );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user