deploy_contract
Deploy a WASM smart contract to a NEAR account. Specify the target account ID, network, and WASM source (file or base64); ensure the account has sufficient balance for storage.
Instructions
Deploy a WebAssembly (WASM) smart contract to a NEAR account. Requires the deployer account to have sufficient balance for storage costs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | NEAR network to deploy to (default: testnet) | |
| wasm_path | No | Path to the compiled WASM file | |
| account_id | Yes | The NEAR account ID to deploy the contract to (e.g., "mycontract.testnet") | |
| private_key | No | Optional: Private key for signing (ed25519:xxx format). If not provided, uses ~/.near-credentials/ | |
| wasm_base64 | No | Alternative: Base64-encoded WASM bytes (use instead of wasm_path) |