### Starting SSRI Server with Debug Logging (Shell) Source: https://github.com/ckb-devrel/ssri-server/blob/master/README.md This command starts the SSRI server using `cargo run` and sets the `RUST_LOG` environment variable to `ssri_server=debug` for detailed logging output. This is useful for development and debugging purposes. ```sh RUST_LOG=ssri_server=debug cargo run ``` -------------------------------- ### Obtaining SSRI Method Path Hex (Rust) Source: https://github.com/ckb-devrel/ssri-server/blob/master/README.md This Rust snippet demonstrates how to generate the hexadecimal representation of a method path, such as `SSRI.get_methods`, for use as a parameter in SSRI RPC calls. It uses `method_path`, `to_le_bytes`, and `encode_hex` functions, likely from `ckb_std::high_level`. ```rust let get_methods_path = method_path("SSRI.get_methods"); let get_methods_path_in_bytes = get_methods_path.to_le_bytes(); let get_methods_path_path_hex = encode_hex(&get_methods_path_in_bytes); // get_methods_path_hex is `0x58f02409de9de7b1` ``` -------------------------------- ### Executing a CKB Script via RPC Call (Shell) Source: https://github.com/ckb-devrel/ssri-server/blob/master/README.md This shell command demonstrates how to execute a CKB script on the SSRI server using a `curl` RPC call. It sends a JSON payload specifying the `run_script_level_code` method, a script hash, and an array of parameters. The `echo` command pipes the JSON payload to `curl`. ```sh echo '{ "id": 2, "jsonrpc": "2.0", "method": "run_script_level_code", "params": ["0x900afcf79235e88f7bdf8a5d320365b7912f8074f4489a68405f43586fc51e5c", 0, ["0x58f02409de9de7b1", "0x0000000000000000", "0x0a00000000000000"]] }' \ | curl -H 'content-type: application/json' -d @- \ http://localhost:8090 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.