๐Ÿ”€Router Contract

Used to initiate cross-chain transactions with us within your contract.

circle-info

Tip

Check the API Docs to find the contract address for each networks.

Code

  • transferToken The ERC20 token of the chain where the contract is located cross-chain

circle-info

Parameters

  • token=> ERC20 contract address (if not approved, you need to approve it first)

  • to=>address (pass Orbiter Maker address)

  • value=>uint (quantity)

  • data=> bytes (extended parameters that need to be passed) โ†“see belowโ†“

  • transfer Cross-chain native main currency of the chain where the contract is located

circle-info

Parameters

  • to => address (pass Orbiter Maker address)

  • data=> bytes (extended parameters that need to be passed) โ†“see belowโ†“

Introduction to Data extended parametersโ€‹arrow-up-right

key
value
required

c

Security code, vc parameter obtained through routers interface, if the amount has a mantissa, it does not need to be passed here.

false

t

Target link receiving address (can be passed when ToStarknet and cross-address)

false

app

Your dapp name(short name), for statistics

false

url encode: param1=value1&param2=value2

example:

hexadecimal encoding: Utils

Github: https://github.com/Orbiter-Vizing/VizingX-contractarrow-up-right

Last updated