curl -sS 'https://solana-devnet.api.onfinality.io/public' \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"getSlot","params":[{"commitment":"finalized"}]}'
A numeric result is the latest finalized slot reported by the endpoint. To diagnose a cluster mismatch, compare getGenesisHash with the result from Solana's Devnet endpoint before sending transactions. Keep contract program IDs and RPC URLs separate from those in your mainnet configuration.
Set your CLI or SDK to the Devnet endpoint before deploying a program. Get test SOL using the Solana faucet guide and check resulting signatures in the Devnet explorer.
solana config set --url https://solana-devnet.api.onfinality.io/public
solana config get