Updating NEAR Pool Details
This guide explains how to update the pool details for bitwise_1.poolv1.near so that they appear on NEAR Blocks Node Explorer.
Overview
Pool details are stored in the pool-details.near contract on NEAR mainnet. These details can be viewed and updated using the NEAR CLI.
Prerequisites
See NEAR Operations Prerequisites for common requirements.
Checking Current Pool Details
To view the current pool details (if any exist):
/home/neard/bin/near-cli contract call-function as-read-only pool-details.near get_fields_by_pool json-args '{"pool_id": "bitwise_1.poolv1.near"}' network-config mainnet now
If no details have been set, this command will return null.
Updating Pool Details
Pool details must be updated one field at a time using the update_field method. The general command format is:
/home/neard/bin/near-cli contract call-function as-transaction pool-details.near update_field json-args '{"pool_id": "bitwise_1.poolv1.near", "name": "FIELD_NAME", "value": "FIELD_VALUE"}' prepaid-gas '200.0 Tgas' attached-deposit '0 NEAR' sign-as bitwise_1.near network-config mainnet sign-with-access-key-file /home/neard/.near-credentials/mainnet/bitwise_1.mainnet.json
Example: Updating Twitter Handle
/home/neard/bin/near-cli contract call-function as-transaction pool-details.near update_field json-args '{"pool_id": "bitwise_1.poolv1.near", "name": "twitter", "value": "bitwiseinvest"}' prepaid-gas '200.0 Tgas' attached-deposit '0 NEAR' sign-as bitwise_1.near network-config mainnet sign-with-access-key-file /home/neard/.near-credentials/mainnet/bitwise_1.mainnet.json
Available Fields to Update
Based on the pool-details contract documentation, we can update the following fields:
name- Pool namedescription- Pool descriptionurl- Website URLtwitter- Twitter handle (without @)telegram- Telegram handlediscord- Discord serveremail- Contact email
Verifying Updates
After updating fields, verify the changes by reading the pool details again:
/home/neard/bin/near-cli contract call-function as-read-only pool-details.near get_fields_by_pool json-args '{"pool_id": "bitwise_1.poolv1.near"}' network-config mainnet now
The updated information should appear on NEAR Blocks shortly after the transactions are confirmed.