Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing registerPRep method of chain contract on the tracker fails due to invalid registration fee #477

Open
FidelVe opened this issue Aug 16, 2024 · 0 comments

Comments

@FidelVe
Copy link
Contributor

FidelVe commented Aug 16, 2024

when trying to sign the registerPRep method of the chain contract with the tracker it fails because there required 2k ICX fee to pay for registration is not added to the transaction

https://tracker.icon.community/transaction/0x5f49a8f95ea05923e745a6b94edc4a7baf58aa6022baa0dc49792ec4165799f9
https://tracker.icon.community/transaction/trace/0x5f49a8f95ea05923e745a6b94edc4a7baf58aa6022baa0dc49792ec4165799f9
example of how the json rpc call should look like

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "icx_sendTransaction",
  "params": {
    "to": "cx0000000000000000000000000000000000000000",
    "from": "hx...f70fc",
    "nid": "0x3",
    "version": "0x3",
    "timestamp": "0x61fc54530d718",
    "stepLimit": "0x7a1200",
    "value": "0x6c6b935b8bbd400000", # this is missing in the tracker
    "nonce": "0x1",
    "dataType": "call",
    "data": {
      "method": "registerPRep",
      "params": {
        "name": "Node0",
        "country": "USA",
        "city": "Houston",
        "email": "[email protected]",
        "website": "https://test.com",
        "details": "https://test.com/details.json",
        "p2pEndpoint": "127.0.0.1:9000",
        "nodeAddress": "hx...7f70fc"
      }
    },
    "signature": "rRQl1+IuP0....jkBs4mQA="
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant