Skip to main content

ERC20RouterSDK

The ERC20 SDK module allows to interact with the ERC20 bridge, which uses the messaging protocol to send messages from one chain’s bridge contract, to other chains’ bridge contracts.

The module is organized in an ERC20RouterSDK abstract class that serves as a base for the creation of different specific SDKs subclasses per chain type.

This class contains methods to allow starting a bridging operation of ERC20 tokens, claiming it on the target chain, checking whether a transmission is valid for this dapp, etc. Many of these methods are abstract, and have been overridden in the specific subclasses. This allows a more agnostic of the chain type usage from the developer consuming the SDK.

In summary, ERC20RouterSDK provides a generic structure and some common functionality that will be necessary for the specific chain-type subclasses SDK, while also defining a set of methods and functionality that is generic to all chain types.