GET
/
v0
/
morpho
/
vault_position
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.morpho.vaultPosition({});

  console.log(result);
}

run();
{
  "shares": 123,
  "token_amount": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:base:mainnet
required
Available options:
ethereum:mainnet,
base:mainnet
user_address
string
default:0xB3B45f5aCBb58a432BDe58724c1C959E11D5A418
required

The user address of the desired vault position.

vault_address
string
default:0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca
required

The vault address of the desired vault position.

Response

200
application/json

Successful Response

The response is of type object.