Response Compression at RPC Edge

We're excited to announce an important update to our RPC edge infrastructure at thirdweb. This enhancement is designed to improve performance and reduce costs for our users.
š Whatās New?
- Response Compression at RPC Edge:
Weāve enabled response compression, meaning our RPC endpoints now deliver compressed responses to reduce data size and speed up transmission. - Cost Reduction for Users:
With smaller payloads, users can enjoy reduced bandwidth usage and lower overall costs when interacting with our servers. - New Request Requirement:
To take full advantage of this update, you need to add anĀAccept-Encoding
Ā header to your requests. This tells our servers that your client can handle compressed responses.
š ļø How to Use the New Feature
Simply include theĀ Accept-Encoding
Ā header in your API requests. For instance, if you're calling theĀ eth_blockNumber
method using our RPC endpoint, you can use the following curl example:
In this example:
- TheĀ
Accept-Encoding: gzip
Ā header signals that your client accepts gzip-compressed responses. - The JSON payload makes a call toĀ
eth_blockNumber
Ā to retrieve the latest block number.
š Conclusion
This update is part of our continuous effort to enhance performance and efficiency. Weāre committed to providing you with the best tools and infrastructure for your development needs. If you have any feedback or questions, please donāt hesitate to reach out.