{"id":19713233,"url":"https://github.com/josemariasosa/alpha-node","last_synced_at":"2025-09-20T23:21:49.344Z","repository":{"id":45743860,"uuid":"513263108","full_name":"josemariasosa/alpha-node","owner":"josemariasosa","description":"Near Chunk Producer","archived":false,"fork":false,"pushed_at":"2022-07-15T23:12:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T12:06:14.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josemariasosa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-12T19:09:54.000Z","updated_at":"2022-07-12T20:07:15.000Z","dependencies_parsed_at":"2022-09-01T23:01:54.715Z","dependency_job_id":null,"html_url":"https://github.com/josemariasosa/alpha-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/josemariasosa/alpha-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josemariasosa%2Falpha-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josemariasosa%2Falpha-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josemariasosa%2Falpha-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josemariasosa%2Falpha-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josemariasosa","download_url":"https://codeload.github.com/josemariasosa/alpha-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josemariasosa%2Falpha-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276169974,"owners_count":25597033,"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-09-20T02:00:10.207Z","response_time":63,"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":"2024-11-11T22:20:17.449Z","updated_at":"2025-09-20T23:21:49.328Z","avatar_url":"https://github.com/josemariasosa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Managing Alpha Centauri ⭐️ Node\n\n## NEARd\n\nsudo journalctl -n 100 -f -u neard | ccze -A\n\nsudo systemctl status neard\n\n## Staking Pool\n\n```sh\nnear call pool.f863973.m0 create_staking_pool '{\"staking_pool_id\": \"alpha-centauri\", \"owner_id\": \"alpha-centauri.testnet\", \"stake_public_key\": \"ed25519:5JQJzUAPqehSkMjTp3p58cc4Dr4TgnPGqQ9poZ99rHUr\", \"reward_fee_fraction\": {\"numerator\": 5, \"denominator\": 100}}' --accountId=\"alpha-centauri.testnet\" --amount=30 --gas=300000000000000\n```\n\nTo change the pool parameters, such as changing the amount of commission charged to 1% in the example below, use this command:\n\n```sh\nnear call alpha-centauri.pool.f863973.m0 update_reward_fee_fraction '{\"reward_fee_fraction\": {\"numerator\": 1, \"denominator\": 100}}' --accountId alpha-centauri.testnet --gas=300000000000000\n```\n\nCommands:\n\n```sh\nnear call alpha-centauri.pool.f863973.m0 new '{\"owner_id\": \"alpha-centauri.testnet\", \"stake_public_key\": \"ed25519:5JQJzUAPqehSkMjTp3p58cc4Dr4TgnPGqQ9poZ99rHUr\", \"reward_fee_fraction\": {\"numerator\": 5, \"denominator\": 100}}' --accountId alpha-centauri.testnet\n\nnear view alpha-centauri.pool.f863973.m0 get_owner_id '{}'\n\nnear view alpha-centauri.pool.f863973.m0 get_staking_key '{}'\n\nnear call alpha-centauri.pool.f863973.m1 update_staking_key '{\"stake_public_key\": \"\u003cpublic key\u003e\"}' --accountId \u003caccountId\u003e\n```\n\nMore commands in the staking-pool contract\n\nhttps://github.com/near/core-contracts/tree/master/staking-pool\n\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"validators\", \"id\": \"dontcare\", \"params\": [null]}' -H 'Content-Type: application/json' http://localhost:3030/ | jq\n\ncurl -s http://127.0.0.1:3030/status | jq\n\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"validators\", \"id\": \"dontcare\", \"params\": [null]}' -H 'Content-Type: application/json' http://localhost:3030/ | jq -c '.result.current_validators[] | select(.account_id | contains (\"alpha-centauri.pool.f863973.m0\"))'\n\n\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"EXPERIMENTAL_protocol_config\", \"id\": \"dontcare\", \"params\": {\"finality\": \"final\"}}' -H 'Content-Type: application/json' https://rpc.testnet.near.org | jq .result.epoch_length\n\n\nCURRENT VALIDATOR:\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"validators\", \"id\": \"dontcare\", \"params\": [null]}' -H 'Content-Type: application/json' http://localhost:3030/ | jq -c '.result.current_validators[] | select(.account_id | contains (\"alpha-centauri.factory.shardnet.near\"))' | jq\n\nNODE STATUS:\n\ncurl -s http://127.0.0.1:3030/status\n\n## Common Commands:\n\n```\nsudo apt install curl jq\n```\n\n**Check your node version:**\n\nCommand:\n```\ncurl -s http://127.0.0.1:3030/status | jq .version\n```\n\n**Check Delegators and Stake:**\n\nCommand:\n```\nnear view alpha-centauri.factory.shardnet.near get_accounts '{\"from_index\": 0, \"limit\": 10}' --accountId alpha-centauri.shardnet.near\n```\n\n**Check Reason Validator Kicked:**\n\nCommand:\n```\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"validators\", \"id\": \"dontcare\", \"params\": [null]}' -H 'Content-Type: application/json' 127.0.0.1:3030 | jq -c '.result.prev_epoch_kickout[] | select(.account_id | contains (\"alpha-centauri.factory.shardnet.near\"))' | jq .reason\n```\n\n**Check Blocks Produced / Expected:**\n\nCommand:\n```\ncurl -s -d '{\"jsonrpc\": \"2.0\", \"method\": \"validators\", \"id\": \"dontcare\", \"params\": [null]}' -H 'Content-Type: application/json' 127.0.0.1:3030 | jq -c '.result.current_validators[] | select(.account_id | contains (\"alpha-centauri.factory.shardnet.near\"))'\n```\n\n## Ping Management\n\n```sh\ncrontab -u alpha -l\ncrontab -u alpha -e\n\n0 * * * * /home/alpha/alpha-node/ping-management/ping-script.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosemariasosa%2Falpha-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosemariasosa%2Falpha-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosemariasosa%2Falpha-node/lists"}