Creates the client used to interact with Treasure Connect and other on-chain flows. This is a re-export of the ThirdwebClient.

Usage

import { createTreasureConnectClient } from "@treasure-dev/tdk-core";

const client = createTreasureConnectClient({ clientId: "..." });

Ecosystem game partners should contact Treasure to obtain a value for clientId.

Props

clientId

string

  • ID for interacting with Treasure Connect, provided by Treasure for ecosystem game partners.