This guide will walk you through the process of performing a token swap via SmartContract Explorer.
1. Introduction
2. Click "Search by Address / Txn Hash / Block / Token / Domain Name"
Begin by searching for the specific address or transaction hash.
Click 'Search by Address / Txn Hash / Block / Token / Domain Name' 3. Fill address bar with "0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135"
Fill in contract address provided.
Fill address bar with '0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135' 4. Click "0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135"
Locate and click on the provided address.
Click '0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135' 5. Click here
Proceed by clicking on the designated link.
6. Click "Contract"
Navigate to the 'Contract' section.
7. Click "Write Contract"
Select 'Write Contract' to initiate the contract interaction.
8. Click "Connect to Web3"
Establish a connection to Web3 for further actions.
9. Click "MetaMask Popular"
Choose 'MetaMask' from the options available.
10. Click "convert"
Click on function named "Convert".
11. Click "ornAmount"
Input ORN token without its decimals i.e. for 1000 ORN just input 1000.
12. Fill in amount.
Enter token amount in the provided field.
13. Click here
Proceed by clicking on the + icon to handle decimals.
14. Adjust decimal placement
15. Select 18 decimals.
Fill in the text box with "Select 10¹⁸"
16. Click "Add"
17. Click "Write"
Finalize the token swap by clicking on 'Write'.
This guide covered the steps involved in conducting a token swap through the SmartContract Explorer on Etherscan (and BSCScan), including connecting to Web3, selecting tokens, and finalizing the swap.
For further information on how to troubleshoot common issues or to learn more about using the SmartContract Explorer, refer to the Etherscan documentation . If you encounter any specific problems, consulting the FAQ section or reaching out to their support team can provide additional assistance.
Token Swap using Contracts
For those looking to conduct a token swap through direct SmartContract integration, you can use the provided Ethereum and BNB Chain SmartContract addresses. By interacting directly with these contracts, you can execute token swaps without relying on third-party interfaces, providing a more granular level of control over your transactions.
Ethereum SmartContract ABI:
Copy [{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_orion","type":"address"},{"internalType":"contract IERC20","name":"_lumia","type":"address"},{"internalType":"uint256","name":"_conversionScaleFactor","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ornAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lumiaAmount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"burnAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"conversionScaleFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ornAmount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConversionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumiaDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orion","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orionDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleIsConversionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
BNB Chain SmartContract ABI:
Copy [{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_orion","type":"address"},{"internalType":"contract IERC20","name":"_lumia","type":"address"},{"internalType":"uint256","name":"_conversionScaleFactor","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ornAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lumiaAmount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"burnAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"conversionScaleFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ornAmount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConversionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orion","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleIsConversionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]