๐Ÿ”€Router Contract

Contractโ€‹

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

Tip

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

Code

Methodsโ€‹

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

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

Parameters

  • to => address (pass Orbiter Maker address)

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

Introduction to Data extended parametersโ€‹

parametersโ€‹

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

format ruleโ€‹

url encode: param1=value1&param2=value2

example:

hexadecimal encoding: Utils

open sourceโ€‹

Github: https://github.com/Orbiter-Vizing/VizingX-contract

Last updated

Was this helpful?