Skip to content

Bug: Invalid params: Invalid Uint64 0x00: with redundant leading zeros. #316

@Hanssen0

Description

@Hanssen0

Caused by: #268

Request:

{
  "id": 0,
  "method": "get_cells_capacity",
  "params": [
    {
      "script": {
        "code_hash": "0xd23761b364210735c19c60561d213fb3beae2fd6172743719eff6920e020baac",
        "hash_type": "type",
        "args": "0x00015cd17fc7c8c994297a7add0dbe494491de607548"
      },
      "script_type": "lock",
      "script_search_mode": "exact",
      "filter": {
        "script_len_range": [
          "0x00",
          "0x01"
        ],
        "output_data_len_range": [
          "0x00",
          "0x01"
        ]
      }
    }
  ],
  "jsonrpc": "2.0"
}

Response:

{
  "jsonrpc": "2.0",
  "error": {
    "code": -32602,
    "message": "Invalid params: Invalid Uint64 0x00: with redundant leading zeros."
  },
  "id": 0
}

CKB RPC only accepts hex numbers, not hex byte numbers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions