📗Orbiter Router
Last updated
Last updated
OrbiterRouter can be used to initiate cross-chain transactions with us within your contract. Just call: OrbiterRouter contract address in your entry contract and pass the parameters. The latest version of the contract is currently called: OrbiterRouterV3 contract. This contract is backward compatible.
OBSource and OrbiterRouterV1 are obsolete, please do not use this contract anymore
Initiate Orbiter Maker cross-chain transaction
transferToken
The ERC20 token of the chain where the contract is located cross-chain
parameter
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 for details)Introduction to Data extended parameters)
transfer
Cross-chain native main currency of the chain where the contract is located
parameter
to => address (pass Orbiter Maker address)
data=> bytes (extended parameters that need to be passed, see below for details)Introduction to Data extended parameters)
Parameter format
// Parameter text
t=0x069A775eF31FaE8311B2EE2024243C9F1eE46E63f98A7DCAF3D077C951f5174b
// The hexadecimal encoding is passed into the contract
https://string-functions.com/string-hex.aspx hex code
743D30783036394137373565463331466145383331314232454532303234323433433946316545343645363366393841374443414633443037374339353 1663531373462
// Parameter text
c=9002&t=0xEFc6089224068b20197156A91D50132b2A47b908
// The hexadecimal encoding is passed into the contract
633d3930303226743d307845466336303839323234303638623230313937313536413931443530313332623241343762393038
Supported parameter list
name
desc
default
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), required for statistics
false
Mainnet: 0x058680be0cf3f29c7a33474a218e5fed1ad213051cb2e9eac501a26852d64ca2
Testnet: 0x045cf46534ccc555f5f80816b4f842780ad4cedd82825460310ff2e5e9aa999a
https://sepolia.starkscan.co/tx/0x4e64431da3a475ea77e87adf2d1709f56a2782389039e93596a497e5ce2df7a