Connecting to a sandbox

Note: The contract manager is currently available as part of our Early Access program, which when enabled gives you access to cutting-edge and potentially unstable features. It requires opting-in; navigate to your account settings by clicking on your username or GitHub avatar in the sidebar. Click ADVANCED and choose Early Access.

Please note, this section of the documentation assumes that you have already created a sandbox and deployed your contracts to the sandbox. If you need help getting started with sandboxes and deployments to sandboxes, please check out the creating a sandbox section and the deploying to a sandbox section for more details.

If you deployed your contract to a sandbox and would like to interact with it using the contract manager, you'll need to have your MetaMask connected to your sandbox instance. To connect MetaMask to your sandbox, you'll need the RPC URL and the generated mnemonic. Navigate to SANDBOXES and click on VIEW/EDIT of the sandbox you deployed to. Copy the Mnemonic, open your MetaMask browser extension, and select Import using account seed phrase.

Sandbox view/edit modal and MetaMask wallet setup
Sandbox view/edit modal and MetaMask wallet setup

A new tab will open for restoring your account with a seed phrase/mnemonic; paste the mnemonic into the Wallet Seed text box, create a password, and click Restore.

Restore MetaMask account with seed phrase
Restore MetaMask account with seed phrase

Once you have successfully logged into MetaMask via seed phrase, next you'll need to create a custom RPC using the sandbox RPC URL. Copy the RPC URL, open your MetaMask browser extension, click on the Network dropdown list, select Custom RPC from the bottom of the list. Enter a network name, paste the RPC URL into the New RPC URL text box, enter in Ganache's Chain ID: 1337, and any other relevant information, and click Save.

Create Custom RPC in MetaMask
Create Custom RPC in MetaMask

If you click on the MetaMask logo it'll take you back to your account details where you should see a test account with 100 ETH. Now you're connected to MetaMask and can head over to the contract manager to interact with your contract.

Navigate to the DEPLOYMENTS page, toggle to TABLE view, and select the deployment from your list of deployments. On the chosen deployment page, under the CONTRACTS tab, you can chose a contract to interact with by clicking on MANAGE.

A MetaMask pop-up will appear asking you to select an account to use, choose which account to use from the list and click Next, and finally accept the permissions by clicking Connect. You've successfully selected an account, now you're ready to interact with the contract manager! To learn more on interacting with contracts, head over to the Interacting with functions section.