p2p-org / solanaj

MIT License
86 stars 101 forks source link

How to analyze the amount in the transaction confirmation? #25

Open hanny15 opened 2 years ago

hanny15 commented 2 years ago

String signature = "3U6JAfMJPE8i1PpYTKfHHsLp9xu7iS3YBmK2Mg8kkygpH57xyrHWq39mp39xr6FgM447R7dqwDgXVMq79Dm7HnwT"; final ConfirmedTransaction confirmedTransaction = client.getApi().getConfirmedTransaction(signature); String data = confirmedTransaction.getTransaction().getMessage().getInstructions().get(0).getData();