Notes
sendfor ERC-20 tokens,sendNativefor native tokens (ETH, BNB, AVAX, etc.)nonceis used for unique transfer identification — can set to 0 or use block.timestampmaxSlippageis in basis points (1 = 0.01%, 100 = 1%, 5000 = 50%)- Uses SGN validators to verify cross-chain messages
- Finality: typically 5-20 minutes depending on chain confirmation requirements
- Requires ERC-20 approval to the Bridge address
Its names in a program
On Ethereum,Celer is a namespace: its contracts need no import.
Deployments
ABI
CelerBridgeABI
import CelerBridgeABI from "./protocols/celer/CelerBridgeABI.json"; Speaks for: bridge.
send(address _receiver, address _token, uint256 _amount, uint64 _dstChainId, uint64 _nonce, uint32 _maxSlippage)sendNative(address _receiver, uint256 _amount, uint64 _dstChainId, uint64 _nonce, uint32 _maxSlippage) payable
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
