0%
HomeCase Studies
Origin’s development was bogged down with inconsistent states and RPC errors

Origin’s development was bogged down with inconsistent states and RPC errors

Origin

413K+

Daily queries

880 Hours

Saved per month

Zero

Errors

Alchemy is reliable and that is paramount to us as engineers.

Mike Shultz, Origin Developer

Like many blockchain teams, Origin is building a protocol that relies on successfully sending orders to the blockchain and staying up to date on the blockchain state.

They used to rely on an infrastructure provider fraught with consistency errors. Along the way, Origin realized they urgently needed to either spend a few months building pieces to make that system functional or find a new solution.

The sooner they fixed their infrastructure, the sooner they could wind down engineers debugging unreliable data on a daily basis. Today Origin is focused on their protocol, leveraging Alchemy’s next gen infrastructure to query the blockchain and get reliable state information.

Origin originally used a different infrastructure provider, full of inconsistent state and RPC errors. Not all requests seemed to go to servers on the same page.

For instance, one node would answer a request, but the node was a few blocks behind a different node that answered another request. These weird state issues were virtually impossible to troubleshoot until they figured out the specific issue, and then they saw it everywhere.

Inconsistent state issues were far worse to debug than RPC errors. On many occasions, a user would report an issue and Origin would spend time debugging only to find out the node sent a bad response.

For instance, Origin would see an event happen, check on the state change, and then see that the state hadn’t updated. The inconsistent state information meant end users would see invalid data or that their bids or offers would never make it to the marketplace.

Origin got to a point where they urgently needed to make a decision—either commit to spending the next few months building fixes to make the existing infrastructure work, such as constructing a caching layer, or find another solution.

Franck Chastagnol from Origin heard really positive reviews of Alchemy, so got the rest of the team onboard to testing the new service. They rolled Alchemy out to all of Origin’s staging at first. Now they use Alchemy for all of Origin’s production level products.

Alchemy has saved Origin very significant amounts of time and changed the end user experience for the better.

Franck Chastagnol, Origin

Origin went from seeing an issue every single day to now seeing the occasional temporary issue. For their engineers, the biggest advantage of switching to Alchemy was state between requests being accurate. The relative consistency of state is hard to troubleshoot and makes a large impact when you get the right data back. End users no longer get wild errors and engineers can spend time developing Origin.

Inconsistent state issues now happen just occasionally and only temporarily. If Origin sees an issue, they ask the Alchemy team, who responds quickly to troubleshoot the issue. VIP customers get a direct line of communication to the engineers building Alchemy. The Alchemy team either immediately resolves issues or helps Origin figure out how to fix their code.

In terms of other products from Alchemy, Origin checks the daily analytics update as a sanity check and alerting tool for bugs they may not catch otherwise. Catching these bugs early can clue them into bad behavior from relayers or other dependencies before the problems snowball into more unwieldy ones.

Alchemy has saved Origin very significant amounts of time and changed the end user experience for the better. They continue to be impressed with the responsiveness in support, but they like their core solutions the best. Alchemy is reliable and that is paramount to Origin as engineers.

Case study page related articles background

Related products

Supernode
Supernode
Card background image

The web3 engine

The revolutionary blockchain engine that ensures infinite scalability, reliability and 100% data accuracy.

Code preview

Copied
curl https://eth-mainnet.g.alchemy.com/v2/demo \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":73}'
Faucets
Faucets
Card background image

Free testnet tokens to accelerate development

Get free testnet faucet funds for testing and developing your decentralized applications on Sepolia and Mumbai testnets.

Phantom
Ethereum
Card background image

The decentralized L1

Build the future of the internet economy using Alchemy's world-class blockchain developer platform.

Code preview

Copied
// Setup: npm install @alch/alchemy-sdk const { Network, Alchemy } = require("alchemy-sdk"); // Optional Config object, but defaults to demo api-key and eth-mainnet. const settings = { apiKey: "demo", // Replace with your Alchemy API Key. network: Network.ETH_MAINNET, // Replace with your network. }; const alchemy = new Alchemy(settings); async function main() { const latestBlock = await alchemy.core.getBlockNumber(); console.log("The latest block number is", latestBlock); } main();
Desktop section background image

Build blockchain magic

Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.

Sign Up for Alchemy