BNB Smart Chain
cURL
Curl is the fastest way to poke at BNB Smart Chain without pulling in an SDK or writing a single line of application code. It shines when you want to confirm an endpoint is live, debug a misbehaving call by inspecting the raw JSON response, or drop a quick health check into a shell script or CI pipeline. Every JSON-RPC call to BSC is an HTTP POST carrying a Content-Type: application/json header. Your TheRPC API key sits directly in the URL path (https://bsc.therpc.io/YOUR_API_KEY), so a single command line is enough to query chain 56.
You authenticate against BSC in one of two ways. The default places your key in the URL path, which keeps the command compact and copy-paste friendly. Prefer to keep the key out of the path? That is handy when URLs leak into shared logs. Send it instead as a Bearer token via the Authorization: Bearer YOUR_API_KEY header. Either route needs the same request shape: an HTTP POST whose Content-Type is application/json, since the BSC node only accepts JSON-RPC payloads.