About the AMB

The AMB can be used to relay any data between chains

The Arbitrary Message Bridge (AMB) is designed to relay any data between two EVM-based chains. The originating contract encodes data in the form of an arbitrary method call, which can also include or exclude parameters. This information, along with the target contract address, is passed to the AMB contracts. As soon as data are relayed from chain A to chain B by the Arbitrary Message Bridge oracles, the bridge contract on side B passes the ABI-encoded method to the target contract.

AMB usage examples:

  • transfer NFTs between two chains

  • trigger a method in one chain after some contract invocation in another chain

  • propagate tokens prices to another chain

  • transfer digital asset (native or ERC20 tokens) ownership similar to the generic TokenBridge

  • synchronize contracts states between two chains

AMB's universality means it can be used as a base layer for bridge and application construction. Once the bridge contracts are deployed and the corresponding validators are running the oracles, other applications can use them without the need to deploy their own infrastructure.

  • Check out the ETH-xDai AMB section to view and try some live extensions.

  • Learn about our new multi-token extension, where an ERC20 on Ethereum is bridged and automatically created on xDai!

AMB extensions

We have developed several AMB extensions. A brief description and links to the Github repos are below.

  • Arbitrary Message: Invoke Home/Foreign Bridge to send a message that will be executed on the other Network as an arbitrary contract method invocation.

  • Erc-to-Erc - an extension to transfer an ERC20 token linked with the extension to an ERC677 token on another chain.

  • Erc-to-Native - an extension to transfer an ERC20 token on one chain to a native token on another chain. It works similarly to the xDai bridge.

  • CryptoKitties NFTs - an extension prepared for demonstration purposes. It allows users to transfer CryptoKitties ERC721 tokens from the Ethereum Mainnet to the xDai chain.

Video Explainers

AMB Overview with Igor Barinov - EthCC 2020

AMB cross-chain transfers with Alex Kolotov - NonCon 2020

AMB multi-token extension presentation at EDCON 2020

AMB presentation at Waves online Meetup (Russian presentation)

На онлайн-митапе эксперты обсудят современные тенденции развития технологии, а также поделятся практическими решениями.

Александр Колотов, руководитель группы разработки в проекте TokenBridge, преподаватель Университета Иннополис

Last updated