React SDK
In this section, you'll learn how to go mainnet by using our React SDK
Go live with the React SDK
1
Use the mainnet asset issuer
Trustlines2
Change the provider base URL to mainnet
"use client";
import React from "react";
import {
development,
mainNet,
TrustlessWorkConfig,
} from "@trustless-work/escrow";
interface TrustlessWorkProviderProps {
children: React.ReactNode;
}
export function TrustlessWorkProvider({
children,
}: TrustlessWorkProviderProps) {
const apiKey = process.env.NEXT_PUBLIC_API_KEY || "";
return (
<TrustlessWorkConfig baseURL={mainNet} apiKey={apiKey}>
{children}
</TrustlessWorkConfig>
);
}3
Generate a mainnet API key
Request API KeyMainnet checklist
Last updated
Was this helpful?