👨💻
👨💻
👨💻
👨💻
Dev Documentation
Search
⌃K
🛠
Build with Router Protocol
Asset-swap API
Overview
Performing a Cross-chain Transaction
End-to-end Code Snippet
JS SDK
Overview
Installing and Initializing Router SDK
Performing a Cross-chain Transaction
End-to-end Code Snippet
Important Parameters
Supported Chains
Supported Fee Tokens for ERC20 Transactions
Supported Fee Tokens for CrossTalk
Native Assets
Widget
Integrating Router's Widget
Projects with Router Widget
CrossTalk Library
Overview
Getting Started
Cross-chain NFTs using CrossTalk
1⃣
Import Required Contracts
2⃣
Initialize a New Contract
3⃣
Setting Administrative functions
4⃣
_sendCrossChain Function
5⃣
_routerSyncHandler Function
6⃣
receiveCrossChain Function
7⃣
replayTransferCrossChain Function
Using CrossTalk to Mint NFTs Across Chains
OpenZeppelin Contracts using CrossTalk
Handling Fees
Security Considerations
Examples
Deployment Addresses
Security Audit
CrossTalk NPM Library
SEQUENCER CROSSTALK LIBRARY
Overview
Getting Started
Deployment Addresses
Powered By GitBook
2⃣

Initialize a New Contract

We initialize the contract by passing the constructor arguments “uri_” and “genericHandler_”.
contract CrossChainERC1155 is ERC1155, RouterCrossTalk {
address public owner;
uint256 private _crossChainGasLimit;
constructor(string memory uri_, address genericHandler_)
ERC1155(uri_) RouterCrossTalk(genericHandler_) {
owner = msg.sender;
}
Previous
Import Required Contracts
Next
Setting Administrative functions
Last modified 9mo ago