Deploy the Call Router (Polygon or Ethereum) in Remix

Prepare Setup a) Open Remix and select the plugins

  1. Go to Remix: remix.ethereum.org.
  2. In the left sidebar, ensure Solidity Compiler and Deploy & Run Transactions are enabled.

Prepare Setup b) Create the callback contract

  1. In the File Explorer, click New File → name it CallDecryptionOracleDemoContract.sol.
  2. Copy and Paste the code below and Save.
Error during retrieving content skip as ignoreDownloadError activated.

Prepare Setup c) Compile

  • Open Solidity Compiler → set Compiler to 0.8.24 (or newer that supports 0.8.24 sources).
  • Click Compile CallDecryptionOracleDemoContract.sol and ensure no errors.

Prepare Setup: d) Connect wallet and select environment

  • Ensure your wallet is on the desired network, either Polygon Mainnet or Ethereum Mainnet or Polygon Test Amoy or Ethereum Test Sepolia.
  • Open Deploy & Run Transactions panel.
  • Set Environment to Injected Provider – MetaMask. Approve the connection if prompted.

Prepare Setup e) Deploy CallDecryptionOracleDemoContract

  • (Still in Deploy & Run Transactions panel)
  • In Contract, choose CallDecryptionOracleDemoContract.
  • In Deploy & Verify add the Constructor arguments and paste the oracle address:
    • If you are on Ethereum Mainnet: 0x13E6464A85a63c9214a4F04cd942466F35D17E54
    • If you are on Polygon Mainnet: 0x22a687a3a0F958AccC1395C4D134F297eaCa1B2B
    • If you are on Sepolia - Ethereum Testnet: 0x668a5e0eE0dD80F08AE7cf7D91Af84d6bB28f70D
    • If you are on Amoy - Polygon Testnet: 0x27aF9135aF9a7FEe7f9dde4d595E200B0c602576
  • Click Deploy.
  • Confirm in MetaMask: Confirm the transaction in MetaMask.

Open the Demo Contract under Deployed Contracts. You may now use its methods.