Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

method system_dryRun is not found #1925

Closed
islishude opened this issue Nov 6, 2020 · 2 comments
Closed

method system_dryRun is not found #1925

islishude opened this issue Nov 6, 2020 · 2 comments

Comments

@islishude
Copy link

version:

polkadot 0.8.26-116df387-x86_64-linux-gnu

start command:

polkadot --dev --alice --unsafe-ws-external --unsafe-rpc-external --rpc-cors=all --base-path=/chaindata --pruning=archive

call system_dryRun

curl --location --request POST 'http://127.0.0.1:9933' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "system_dryRun",
    "params": [
        "0x410284d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d01022c316c405059f2ae38e313343dc19a377c378365982cb57e9bad939fd5d43834f5c45efb86e4be627119b21daddda1fdc95be8fc2592cb65e9a6a58beb318c75000000050096f82d3b94430d9344c106daa801fd335b0f5e5b679b5cb0f5ae1589ee4ac0040f0080c6a47e8d03"
    ]
}'
{
    "jsonrpc": "2.0",
    "error": {
        "code": -32601,
        "message": "Method not found"
    },
    "id": 1
}
@jordy25519
Copy link

probably you need to start node with --rpc-methods=Unsafe

@islishude
Copy link
Author

thanks,it's ok now

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