Skip to main content

Step 2: Deploy the enclave image on Oyster

Step 2.1: Host the image where it can be publicly downloaded

Upload the enclave.eif to a hosting service of your choice and make it publicly accessible.

Test whether the public hosting works by running

wget <eif url>

If the above command can successfully download the enclave image, you can proceed to the next step.

Step 2.2: Create a job

Navigate to the marketplace page and select the Polygon chain in the dropdown on the top left. You should see a table filled with operators and the compute resources they offer, that looks something like this:

Marketplace

Step 2.3: Connect your wallet

Click connect and connect your wallet. The address used needs MATIC to pay gas fees and USDC to pay for the job.

caution

Oyster uses native USDC on Polygon. If you have bridged USDC (also known as USDC.e), you have to swap it on a DEX to the native flavor.

Step 2.4: Select an instance

Using the search bar, find a c6a.2xlarge instance for amd64 build or a c7g.2xlarge instance for arm64 builds in the ap-south-1 region. Click the Deploy button next to it. It should open up a deployment popup with prefilled information that looks like this:

Create order

Step 2.5: Fill in details

The default details are mostly good enough for us. Fill in

  • 1 day duration
  • 20 KB/s bandwidth
  • the enclave url from step 2.1 above

Step 2.6: Place the job

Approve USDC transfers and place the job. It should be visible as an active job after confirmation:

Place job