{"id":63311,"library":"sc-chain-spec","title":"SC Chain Spec","description":"Defines chain configurations for Substrate-based blockchains, including genesis state, bootnodes, and protocol parameters.","status":"active","version":"50.0.0","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/polkadot-sdk","tags":["substrate","blockchain","chain-spec","configuration","polkadot"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsc-chain-spec = \"50.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add sc-chain-spec","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ChainSpec","correct":"use sc_chain_spec::ChainSpec;"}],"quickstart":{"code":"use sc_chain_spec::ChainSpec;\n\nfn main() {\n    // Example: loading a chain spec from a JSON file\n    let spec = ChainSpec::from_json_file(\"chain_spec.json\").expect(\"Failed to load chain spec\");\n    println!(\"Chain name: {}\", spec.name());\n}","lang":"rust","description":"Loads a chain specification from a JSON file and prints the chain name."},"warnings":[{"fix":"Ensure the chain spec JSON matches the version of `sc-chain-spec` you are using. Regenerate specs with the same Substrate version.","message":"Chain spec format can change between Substrate versions; loading an incompatible spec may panic.","severity":"breaking","affected_versions":">= 50.0.0"}],"env_vars":null,"search_vec":"'base':10 'blockchain':11,20 'bootnod':15 'chain':2,5,22 'chain-spec':21 'configur':6,24 'defin':4 'genesi':13 'includ':12 'paramet':18 'polkadot':25 'protocol':17 'sc':1 'spec':3,23 'state':14 'substrat':9,19 'substrate-bas':8","created_at":"2026-06-17T16:42:31.279317+00:00","updated_at":"2026-06-17T16:42:31.279317+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://paritytech.github.io/polkadot-sdk/","github":"https://github.com/paritytech/polkadot-sdk","docs":"https://docs.rs/sc-chain-spec/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}