Coinbase Commerce is putting ethereumâs most recent upgrade, Constantinople, to use for thousands of retailers and merchants around the world.
Launched early last year, Coinbase Commerce is an app for online vendors wanting to accept payments in crypto and integrate these purchases into existing business cash flows.
As reported by CoinDesk in May, over $50 million in transactions have been processed through Coinbase Commerce by 2,000 merchant clients, including e-commerce giant Shopify.
Recently, the application added support for ethereum-based stablecoin USDC. On Wednesday, Coinbase Commerce software engineer Bojan Joveski released a blog post discussing the new ethereum feature that makes USDC payments possible.
âCREATE2 is very recent addition to the ethereum ecosystem and itâs very important because it enables workflows that were impossible or at least very impractical before,â said Joveski. âNow, developers can simulate interactions with the blockchain without deploying their [smart] contracts on there.â
Joveski added:
âThis is very neat because it enables huge savings for cost.â
CREATE2 was activated on the ethereum blockchain in February as part of a larger systemwide upgrade known as Constantinople.
According to Joveski, the implications of his report suggest a cost-effective and secure way for Coinbase Commerce to support virtually any ethereum-based ERC-20 token, not just USDC. Whatâs more, itâs not only payments on the ethereum blockchain that Joveski suspects can benefit from the CREATE2 feature.
âThe same structure of how we architected these smart contracts can be used for a number of uses cases that go beyond payments,â said Joveski. âAny interaction where some service provider needs to eagerly offer some items for sale or tokens related to gaming they can re-apply the same principles weâve used here.â
Originally proposed by the founder of ethereum, Vitalik Buterin, Ethereum Improvement Proposal 1014, or âCREATE2,â adds a new operation code enabling developers to deploy a smart contract on ethereum in the future tense.
Rather than committing every interaction to a smart contract on the blockchain, CREATE2 allows for what Hubert Ritzdorf, CTO of smart-contract audit firm Chain Security, calls âdeterministic deployment.â
âWhen you deploy a new smart contract on ethereum, what happens is that [the network] computes the address to where the contract will be deployed. You know this ahead of time but it depends on a lot of variables,â Ritzdorf told CoinDesk in February. âCREATE2 makes it easier to say, âWe will deploy in the future a contract to this particular address.ââ
As such, on Coinbase Commerce, smart contracts facilitating the payment and receipt of USDC tokens only have to interact and pay fees to the ethereum blockchain for final settlement. Initial smart-contract interactions such as address confirmations happen off-chain thanks to CREATE2, according to Joveski.
âWithout CREATE2 ⦠we would need to deploy to the blockchain in order to show you the address you can pay to,â said Joveski, adding:
â[With CREATE2] I can show you an address that doesnât exist on the blockchain but that you can pay to.â
This not only saves Coinbase Commerce on gas costs but also, as Joveski highlights, discourages the initiation of fake payments since these are only committed to the blockchain upon final settlement.
For now, initiating payments of USDC on Coinbase Commerce is free for all customers. This may change into a paid feature, according to a Coinbase representative, once smart-contract-based payments on the application are sufficiently streamlined.
This being the first design and deployment by Coinbase of a commercial payments system on ethereum, Joveski said:
âWhat is novel about this is that the ethereum ecosystem is releasing all these new features. This is essentially one of the first tries to use those features and build a secure [payments] system on the platform.â
Brian Armstrong image via CoinDesk archives