{"id":31923316,"url":"https://github.com/fuellabs/fuel-utils","last_synced_at":"2025-10-13T23:49:21.782Z","repository":{"id":240273920,"uuid":"801553608","full_name":"FuelLabs/fuel-utils","owner":"FuelLabs","description":"The repository contains utils useful to interact with the Fuel network.","archived":false,"fork":false,"pushed_at":"2025-09-24T11:06:06.000Z","size":241,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-24T12:33:32.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FuelLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-16T13:04:02.000Z","updated_at":"2025-09-24T11:06:10.000Z","dependencies_parsed_at":"2024-05-17T18:30:26.884Z","dependency_job_id":"effab1e9-9e1b-4186-bac8-1a7e94111025","html_url":"https://github.com/FuelLabs/fuel-utils","commit_stats":null,"previous_names":["fuellabs/fuel-utils"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/FuelLabs/fuel-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuelLabs","download_url":"https://codeload.github.com/FuelLabs/fuel-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Ffuel-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017229,"owners_count":26086016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-13T23:49:16.854Z","updated_at":"2025-10-13T23:49:21.769Z","avatar_url":"https://github.com/FuelLabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Util to interact with the network\n\n```shell\nUsage: fuel-core-network-upgrader \u003cCOMMAND\u003e\n\nCommands:\n  upgrade     Upgrades the state transition function of the network\n  upload      Uploads the state transition bytecode\n  transfer    Transfers assets to recipient\n  parameters  Downloads consensus parameters from the node\n  help        Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help     Print help\n  -V, --version  Print version\n```\n\n### Transfer\n```shell\nUsage: fuel-core-network-upgrader transfer [OPTIONS] --amount \u003cAMOUNT\u003e --recipient \u003cRECIPIENT\u003e --url \u003cURL\u003e\n\nOptions:\n  -a, --amount \u003cAMOUNT\u003e        The amount to transfer [env: AMOUNT=]\n  -r, --recipient \u003cRECIPIENT\u003e  The recipient of the transfer [env: RECIPIENT=]\n  -u, --url \u003cURL\u003e              The URL to upload the bytecode to [env: URL=https://devnet.fuel.network/v1/graphql]\n  -i, --asset-id \u003cASSET_ID\u003e    The asset to transfer [env: ASSET_ID=]\n  -h, --help                   Print help\n```\n\n### Upload\n\n```shell\nUsage: fuel-core-network-upgrader upload [OPTIONS] --path \u003cPATH\u003e --url \u003cURL\u003e\n\nOptions:\n  -p, --path \u003cPATH\u003e\n          The path to the bytecode file to upload\n  -u, --url \u003cURL\u003e\n          The URL to upload the bytecode to [env: URL=https://devnet.fuel.network/v1/graphql]\n      --subsection-size \u003cSUBSECTION_SIZE\u003e\n          The size of the subsections to split the bytecode into. Default size is 64KB [env: SUBSECTION_SIZE=] [default: 65536]\n  -s, --starting-subsection \u003cSTARTING_SUBSECTION\u003e\n          The size of the subsections to split the bytecode into. Default size is 64KB [env: STARTING_SUBSECTION=] [default: 0]\n  -h, --help\n          Print help\n```\n\n### Upgrade\n\n```shell\nUsage: fuel-core-network-upgrader upgrade --url \u003cURL\u003e \u003cCOMMAND\u003e\n\nCommands:\n  state-transition      Upgrades the state transition function of the network\n  consensus-parameters  Upgrades the consensus parameters of the network\n  help                  Print this message or the help of the given subcommand(s)\n\nOptions:\n  -u, --url \u003cURL\u003e  The URL to upload the bytecode to [env: URL=https://devnet.fuel.network/v1/graphql]\n  -h, --help       Print help\n\n```\n\n### Parameters\n\n```shell\nUsage: fuel-core-network-upgrader parameters [OPTIONS] --url \u003cURL\u003e\n\nOptions:\n  -p, --path \u003cPATH\u003e  The path to dump the consensus parameters [default: consensus_parameters.json]\n  -u, --url \u003cURL\u003e    The URL to upload the bytecode to [env: URL=https://devnet.fuel.network/v1/graphql]\n  -h, --help         Print help\n```\n\n## Update consensus parameters\n\n1. Download the current consensus parameters from the node:\n```shell\nURL=https://devnet.fuel.network/v1/graphql fuel-core-network-upgrader parameters\n```\n2. Update the `consensus_parameters.json` file with the new parameters.\n3. Upload the new consensus parameters to the node by using Privileged Address account with funds:\n```shell\nURL=https://devnet.fuel.network/v1/graphql fuel-core-network-upgrader upgrade consensus-parameters -p consensus_parameters.json\n```\n\n## Update state transition function\n\n1. Upload the new state transition bytecode to the node by using ANY account with funds:\n```shell\nURL=https://devnet.fuel.network/v1/graphql fuel-core-network-upgrader upload -p fuel-core-wasm-executor.wasm\n```\n2. Copy the root of the bytecode from the logs.\n3. Upgrade to uploaded state transition function by using Privileged Address account with funds:\n```shell\nURL=https://devnet.fuel.network/v1/graphql fuel-core-network-upgrader upgrade state-transition -r 0000000000000000000000000000000000000000000000000000000000000000\n```\n\n## Transfer assets\n\nYou can transfer assets to any account by using ANY account with funds:\n```shell\nURL=https://devnet.fuel.network/v1/graphql fuel-core-network-upgrader transfer --amount 10000000000 --recipient 1d5adf1197c4f48dfa642261e98fcefedd2ccd805dbbd2c574ddf3ed6dc66b5a\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Ffuel-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuellabs%2Ffuel-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Ffuel-utils/lists"}