Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Show asset decimal#485

Merged
shargon merged 7 commits intoneo-project:masterfrom
shargon:decimal-point
Jan 28, 2021
Merged

Show asset decimal#485
shargon merged 7 commits intoneo-project:masterfrom
shargon:decimal-point

Conversation

@shargon
Copy link
Copy Markdown
Member

@shargon shargon commented Jan 26, 2021

Close #483

@shargon shargon requested a review from chenzhitong January 26, 2021 16:19
@chenzhitong
Copy link
Copy Markdown
Contributor

chenzhitong commented Jan 27, 2021

  • getnep17balance
  • getnep17transfers
  • getwalletbalance

request

{
  "jsonrpc": "2.0",
  "method": "getnep17transfers",
  "params": ["NikhQp1aAD1YFCiwknhM5LQQebj4464bCJ"],
  "id": 1
}

response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "sent": [],
        "received": [
            {
                "timestamp": 1611715807166,
                "assethash": "0x70e2301955bf1e74cbb31d18c2f96972abadb328",
                "transferaddress": "NgaiKFjurmNmiRzDRQGs44yzByXuSkdGPF",
                "amount": "10000000000", (←_←)
                "blockindex": 4,
                "transfernotifyindex": 2,
                "txhash": "0x2e7ffdeaa9f74f1c0a85eb545d412b98d9821e9ebaffc373b116d17767e40c49"
            },
            {
                "timestamp": 1611715807166,
                "assethash": "0xf61eebf573ea36593fd43aa150c055ad7906ab83",
                "transferaddress": "NgaiKFjurmNmiRzDRQGs44yzByXuSkdGPF",
                "amount": "1",
                "blockindex": 4,
                "transfernotifyindex": 1,
                "txhash": "0x9be136667651d0abd02f6976ff08b317f0c4689e0e95b4d1fb5f1fafefc4bfc1"
            }
        ],
        "address": "NikhQp1aAD1YFCiwknhM5LQQebj4464bCJ"
    }
}

@shargon shargon merged commit 18acf01 into neo-project:master Jan 28, 2021
@shargon shargon deleted the decimal-point branch January 28, 2021 09:07
@roman-khimov roman-khimov mentioned this pull request Feb 3, 2021
joeqian10 pushed a commit to joeqian10/neo-modules that referenced this pull request Apr 7, 2021
* Show decimal point

* Revert change

* Nep17Balance

* getnep17transfers

* Erik's feedback

* Fix
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggest getnep17balances to show asset decimal

3 participants