Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Issue with Compressed Addresses? #106

Open
adamkrellenstein opened this issue Feb 21, 2015 · 1 comment
Open

Issue with Compressed Addresses? #106

adamkrellenstein opened this issue Feb 21, 2015 · 1 comment

Comments

@adamkrellenstein
Copy link
Member

adamkrellenstein commented Feb 21, 2015

Moved from here: CounterpartyXCP/counterparty-core#720

From https://bitcointalk.org/index.php?topic=395761.msg10529461#msg10529461:

Uncompressed address:
Code:

{
  "jsonrpc":"2.0",
  "id":0,
  "method":"get_normalized_balances",
  "params":{
    "addresses":[
      "16P8vY1gVspGG8JeeWK8MSYzX4B9yqcJbF"
    ]
  }
}

Gives response:

Code:
{
    "jsonrpc": "2.0",
    "result": [],
    "id": 0
}

Compressed:
Code:

{
  "jsonrpc":"2.0",
  "id":0,
  "method":"get_normalized_balances",
  "params":{
    "addresses":[
      "12ze3N3Qeet6ji82rw8JqaepTL9uUxihFX"
    ]
  }
}

Gives response:
Code:

{
    "jsonrpc": "2.0",
    "id": 0,
    "error": {
        "message": "Invalid params",
        "code": -32602
    }
}

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8779608-issue-with-compressed-addresses?utm_campaign=plugin&utm_content=tracker%2F686853&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F686853&utm_medium=issues&utm_source=github).
@unsystemizer
Copy link
Contributor

The 2nd address works fine with the latest version of counterblock.

{
  "jsonrpc": "2.0",
  "result": [
    {
      "normalized_quantity": 9001,
      "owner": true,
      "address": "12ze3N3Qeet6ji82rw8JqaepTL9uUxihFX",
      "quantity": 9001,
      "asset": "A10960793242546430000"
    },
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants