As an integrated address is different from a subaddress and account hierarchy, how do I get the balance of an integrated address?
1 Answer
An integrated address is just a normal address with an embedded payment ID. Thus you use the usual get_balance RPC method, or balance detail
CLI command.
As they have a payment ID, you can also make use of get_payments (RPC) and payments <PID>
(CLI), which will show you any incoming payments made to the address using the provided payment ID.
It's worth pointing out you should not use integrated addresses / payment IDs, as these are deprecated in favor of using subaddresses.
-
payments <paymentId> (CLI) - It says that paymentID should be 16 or 64 character hex string, previously asked for 16 / 64 character long paymentId what should I do for get balance of an integrated address?– RudrikaCommented Aug 5, 2019 at 13:34
-
Does integrated address map as SubAddress map under indexes of An accounts?– RudrikaCommented Aug 5, 2019 at 13:35
-
When you created your integrated address you will have specified the payment ID. It is that payment ID you use for
payments <payment ID>
. Commented Aug 5, 2019 at 13:41 -
"Does integrated address map as SubAddress map under indexes of An accounts?" <- It's would be account index 0 subaddress index 0 because an integrated address is a normal address with an embedded payment ID. Your "normal" wallet address (or "main" if you prefer), is at 0,0. Commented Aug 5, 2019 at 13:44
-
In Monero wallet cli I am not able to see my integrated address or its details under account command which will show all accounts, even with address 0/1/2 command I am not able to see integrated address.– RudrikaCommented Aug 5, 2019 at 13:51