out.scriptPubKey().addresses() is null
jayjacklin opened this issue · 0 comments
jayjacklin commented
List txList = block.tx();
if(!CollectionUtils.isEmpty(txList)){
for(String tx:txList){
BitcoindRpcClient.RawTransaction transaction= client.getRawTransaction(tx);
List<BitcoindRpcClient.RawTransaction.Out> outList= transaction.vOut();
for(BitcoindRpcClient.RawTransaction.Out out:outList){
List<String> addresses=out.scriptPubKey().addresses();
System.out.println(addresses);
}
}
}
addresses is null ,There is an address parameter in scriptPubKey