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

Indexer: Invalid params doesn't support search_key.filter.output_data parameter #594

Closed
xrdavies opened this issue Apr 2, 2024 · 2 comments

Comments

@xrdavies
Copy link

xrdavies commented Apr 2, 2024

With the master branch, the example in readme reports error with API_URL https://testnet.ckb.dev

ckb-cli rpc get_transactions --json-path ./searchkey.json --order asc --limit 3
jsonrpc error: `Server error: Indexer: Invalid params doesn't support search_key.filter.output_data parameter`
@EthanYuan
Copy link
Collaborator

The "https://testnet.ckb.dev" node is currently enabled with the original Indexer ( not rich-indexer), and does not currently support the search_key.filter.output_data parameter of rpc get_transactions.

You can just modify searchkey.json to remove the output_data from the filter:

{
    "script": {
        "code_hash": "0xbbad126377d45f90a8ee120da988a2d7332c78ba8fd679aab478a19d6c133494",
        "hash_type": "data1",
        "args": "0x"
    },
    "script_type": "type",
    "script_search_mode": "prefix",
    "with_data": false
}

For CKB nodes with Rich-Indexer enabled, there will be corresponding support as follows:

INDEXER RPC Indexer Rich-Indexer
get_cells script args partial mode search ✔️
get_cells cell data filter(prefix|exact|partial) ✔️ ✔️
get_transactions script args partial mode search ✔️
get_transactions cell data filter(prefix|exact|partial) ✔️
get_cells_capacity script args partial mode search ✔️
get_cells_capacity cell data filter(prefix|exact|partial) ✔️ ✔️

@doitian
Copy link
Member

doitian commented Apr 7, 2024

Closed by #595

@doitian doitian closed this as completed Apr 7, 2024
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

3 participants