Integrating with Reflect w/Typescript

Ensure you have access to a reliable transaction submission partner for RPC services when interacting with the ReflectTS SDK.

Before you can interact with Reflect stablecoins through your development environment you must install the SDK via your preferred package managers, find out how below:

yarn add reflect/ts-sdk

Creating and redeeming stablecoins w/Typescript

	const connection = new Connection("https://api.mainnet-beta.solana.com");
    const jlpStrategy = new JlpStrategy(connection);

    const user = Keypair.generate();
    const AMOUNT = new BN(1000 * Math.pow(10, 6));

    const ix = await jlpStrategy.mint(
        user.publicKey,
        AMOUNT
    );

    const { blockhash } = await connection.getLatestBlockhash();

    const {
        value: lookupTable
    } = await connection.getAddressLookupTable(
        jlpStrategy.lookupTable
    );

    const message = new TransactionMessage({
        instructions: ix,
        payerKey: user.publicKey,
        recentBlockhash: blockhash
    }).compileToV0Message([lookupTable]);

    const transaction = new VersionedTransaction(message);

    // Transaction signature and landing logic, adjust for your needs.
    transaction.sign([user]);
    await connection.sendRawTransaction(transaction.serialize());

Start earning, claim appreciation w/Typescript

These features are not yet available until Reflect.Money is out of public-beta. Thank you for your patience. We will announce these features through X.com/ReflectMoney