NEAR Operations Prerequisites

This page outlines the common prerequisites for performing NEAR validator operations.

Required Access

  • SSH Access: Access to the NEAR mainnet box
  • NEAR CLI: Installed at /home/neard/bin/near-cli
  • Signing Key: Access to the validator signing key at /home/neard/.near-credentials/mainnet/bitwise_1.mainnet.json

Validator Account

Our mainnet validator account is: bitwise_1.poolv1.near

NEAR CLI Path

/home/neard/bin/near-cli

Key Permissions

Ensure the signing key file has appropriate permissions:

ls -la /home/neard/.near-credentials/mainnet/bitwise_1.mainnet.json

The file should be readable by the user executing the commands.

Common Command Structure

Most NEAR CLI commands follow this pattern:

Read Operations

/home/neard/bin/near-cli contract call-function as-read-only CONTRACT_NAME METHOD_NAME json-args 'JSON_ARGS' network-config mainnet now

Write Operations

/home/neard/bin/near-cli contract call-function as-transaction CONTRACT_NAME METHOD_NAME json-args 'JSON_ARGS' prepaid-gas 'GAS_AMOUNT' attached-deposit 'NEAR_AMOUNT' sign-as bitwise_1.poolv1.near network-config mainnet sign-with-access-key-file /home/neard/.near-credentials/mainnet/bitwise_1.mainnet.json