Please login or register.

How to use make_integrated_address and split_integrate_addre[...]

I'm trying to split_integrate_address an address generated with make_integrated_address, the return value is:

"payment_id": "<32afad0f4c268322>"

How can I use the payment_id with get_payments? I tried these ways with no luck...

***** Request *****
{"method":"get_payments","params":{"payment_id":"32afad0f4c268322"},"id":1}
***** Response *****
{
  "error": {
    "code": -5,
    "message": "Payment ID has invalid size"
}
***** Request *****
{"method":"get_payments","params":{"payment_id":"< 32afad0f4c268322 >"},"id":1}
***** Response *****
{
  "error": {
    "code": -5,
    "message": "Payment ID has invald format"
}

^^ The actual request doesn't have spaces between brackets <>, but forum won't show it correctly.

Also tried to convert the hex value to decimals: 3652328104034469000

***** Request *****
{"method":"get_payments","params":{"payment_id":"3652328104034469000"},"id":1}
***** Response *****
  "error": {
    "code": -5,
    "message": "Payment ID has invalid size"
}
Replies: 3
luigi1111 edited 8 years ago Replies: 1 | Weight: 0 | Link [ - ]

Can you try get_bulk_payments?

If you are compiling yourself, you can try replacing the if here: https://github.com/monero-project/bitmonero/blob/master/src/wallet/wallet_rpc_server.cpp#L472

With the one here (the whole statement): https://github.com/monero-project/bitmonero/blob/master/src/wallet/wallet_rpc_server.cpp#L537

It looks like an oversight at first glance.

Edit: you can also probably 0-pad your 16 char one to get to 64.

Edit2: https://github.com/monero-project/bitmonero/commit/d0f011d873b51e243e767fc5f485374f00600225

Thanks for reporting.

Reply to: luigi1111
got3nks edited 8 years ago Replies: 1 | Weight: 0 | Link [ - ]

What is the status of integrated addresses? Does it work with all Monero wallets (and any of their versions)?

What I mean is do all wallets understand integrated address and use the "integrated" payment ID when sending the transaction? As apparently it's not, I withdrew 1 XMR from Poloniex using an integrated payment address but there is no Payment ID in the tx.

Reply to: got3nks luigi1111
luigi1111 posted 8 years ago Weight: 0 | Link [ - ]

It works with simplewallet 0.9 and newer. MyMonero support is needed (but fluffypony has been so busy). After that it's basically just recipient handling (polo, bittrex, xmr.to would be the main ones).