Skip to main content

🛠️ Integration

Quartz is a public smart contract on Solana. You can interact with it using any Solana wallet.

Program address: 6JjHXLheGSNvvexgzMthEcgjkcirDrGduc3HAKB2P1v2

All information about a user, and all user funds, are routed through the Vault account, which is a PDA that is derived from the owner's wallet address:

import { PublicKey } from "@solana/web3.js";
export const getVault = (owner: PublicKey) => {
const [vault] = PublicKey.findProgramAddressSync(
[Buffer.from("vault"), owner.toBuffer()],
new PublicKey("6JjHXLheGSNvvexgzMthEcgjkcirDrGduc3HAKB2P1v2")
);
return vault;
}

SDK

Our SDK is open-source and can be installed by running:

yarn add @quartz-labs/sdk

Auto-generated TS documentation is available here. Detailed SDK documentation will be coming soon.

Quartz bots and APIs are also open-source and available on our GitHub.