Skip to main content

Step 3: Deploy the enclave image on Oyster

Step 3.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 file has been correctly hosted and is publicly accessible by running

wget <eif url>

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

Step 3.2: Create a job

Navigate to the marketplace page and select a chain of your choice in the dropdown to the top right. You will see a table filled with operators and the compute resources they offer which looks something like this:

Marketplace

Step 3.3: Connect your wallet

Click connect and connect your wallet. The address used needs native tokens (like ETH or 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 version.

Step 3.4: Select an instance

Using the search bar, find a c6a.xlarge instance for amd64 builds or a c7g.xlarge 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 3.5: Fill in details

The default details should be mostly good enough. Fill in

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

Step 3.6: Place the job

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

Place job

Wait for a few minutes to obtain the IP of the enclave.