Help
Troubleshoot verification
On this page
Find the symptom, then work through the checks in order. Most failures come from metadata that does not describe the deployed build exactly.
No source metadata or build info
Confirm the account and network, and that the deployment completed. Read the deployed metadata and check that it lists NEP-330 and includes build_info.
NearBlocks shows no verification banner when it gets no NEP-330 metadata. That happens when the contract declares none, and also when NearBlocks' metadata call fails or takes longer than 5 seconds, so reload the page or check with RPC before concluding anything. If the metadata lists NEP-330 but has no build_info, NearBlocks still shows its Verify and Publish prompt, but Verify Contract stays disabled.
If the deployed WASM lacks these fields, it cannot be verified as it stands: rebuild with the reproducible build steps and deploy again.
Repository or commit cannot be fetched
Check the repository and exact commit in source_code_snapshot. Open both from a signed-out browser session. Make sure all build inputs are committed and every dependency can be fetched publicly. Keep credentials out of commits and build inputs.
Use a public HTTPS repository pinned with ?rev= to the full 40-character commit, as git+https://github.com/OWNER/REPO?rev=COMMIT; see source snapshots. The verifier's answers tell you which rule failed.
| Message | Cause |
|---|---|
Source snapshot must use git+ URL format |
The snapshot is not a git+ URL, for example an ipfs:// reference. |
Source snapshot must pin a full 40-character commit SHA |
No commit, or a short or symbolic one such as a branch name. |
Repository URL must use HTTPS or SSH |
Another scheme, such as http:// or file://. |
Repository URL must not contain secrets |
A user name or password in the URL. |
Repository is not publicly accessible |
The repository is private or does not exist. |
Pre-verification checks failed: ... with HTTP 500 |
Another failure before the rebuild, such as a commit that is not in the public repository, or an RPC read that failed, including for a blockId the verifier's RPC nodes no longer serve. |
| A NEAR CLI error with HTTP 500, after the checks above pass | Read the error for the cause. If the snapshot is pinned only by #SHA or uses git@host:owner/repo, use a public HTTPS URL pinned with ?rev= instead. These forms can pass the format checks but fail the rebuild. |
Snapshot checks and pre-verification
Image cannot be pulled or build fails
Compare the registry, repository, tag, digest and platform in build_environment with what the registry offers. The name must be exactly sourcescan/cargo-near or ghcr.io/near/cargo-near; docker.io/sourcescan/cargo-near fails the allowlist. A tag can have a different digest on Docker Hub and GHCR. Check the toolchain, lockfile and container_build_command for that image version. A local pull does not show that the hosted verifier accepts the image. Builds whose metadata includes passed_env parameters are not verified by SourceScan or NearBlocks. Pin the image and cargo-near build options
Rebuilt and deployed hashes differ
Check the account, network and current finalized hash. Replay the exact published commit, image digest, contract path, features and build command. Compare the WASM before any stripping, optimization or other post-processing. Compare the same hash encoding: NEAR reports code hashes in base58, while sha256sum prints hex. The hosted verifier compares the code deployed at the block where it read the metadata, so a deployment after that block is not part of the request; request again once the new code is final.
To reproduce the comparison locally, run this with Docker running. To check an earlier block, such as the one a record names, replace now with at-block-height HEIGHT; old blocks need an archival RPC.
near contract verify deployed-at buildguide.testnet network-config testnet now
NEAR CLI reports HTTP 429
Older NEAR CLI configurations point at rpc.testnet.near.org or rpc.mainnet.near.org. NEAR deprecated those endpoints from June 2025, and they answered with HTTP 429 when checked on 23 November 2026. Point the connection at a current provider from NEAR's RPC list, for example:
near config edit-connection testnet --key rpc_url --value https://archival-rpc.testnet.fastnear.com/
Already verified, or source is missing
If the verifier answers Code hash didn't change, the account already has a record for this code. Use lookup to see it. After a deployment, wait for finality and reload the explorer.
If a record exists but the source browser is empty, list the CID through the API. NearBlocks shows only .rs, .toml and .lock files and hides folders such as .cargo, so other files, including .cargo/config.toml, appear only through the API. If the IPFS gateway is unavailable, use the Git snapshot named in the metadata.
A service error or timeout leaves the outcome unknown. Check the current hash and record before submitting again.
Status looks wrong
NearBlocks shows its Verify and Publish prompt when a record exists for older code, when no record exists, and when its registry call fails. The SourceScan explorer separates those cases, but shows No code is deployed on this account also for an account that does not exist, and Deployed code status unknown when its RPC read fails.
If your own check says the account has no contract while an explorer shows a match, you probably compared the code_hash from view_account. Accounts that run a global contract show 11111111111111111111111111111111 there. Use view_code instead. Read the result for how to tell these apart.
Get help
Open an issue in the relevant SourceScan repository on GitHub. A useful report includes the network, public account ID, deployment transaction or block, code hash, public source commit, image reference and a redacted error. Keep keys, seed phrases, credentials, signed payloads and local configuration out of reports.