More examples

Learn how to build Ethereum smart contract that are interoperable with other blockchains.

Smart Contract examples

The following examples are available to help understand how to write Ethereum smart contracts that can accept (and send) tokens between blockchains.

  • The Bitcoin Payments example demonstrates a new Ethereum smart contract that can accept BTC and distribute it to beneficiaries according to a simple vesting schedule.

  • The Uniswap Adapters example demonstrates how to integrate an existing Ethereum smart contract (the Uniswap exchange) to be compatible with other blockchains.

Integration examples

The following example discuss more advanced integration techniques to remove common barriers to cross-chain applications.

  • The Gas as a Service example walks though how to allow users to pay for Ethereum transactions with any currency.

  • The Confirmation as a Service example walks through how to enable faster cross-chain transactions for users with pre-shifted liquidity held in a smart contract.