ThirdwebSDK.getSplit() method
Warning: This API is now obsolete.
This method is deprecated and will be removed in a future major version. You should use instead.
- const split = await sdk.getSplit("0x1234...");
+ const split = await sdk.getContract("0x1234...", "split");
Get an instance of a Split contract
Signature:
getSplit(contractAddress: string): Promise<import("..").Split>;
Parameters
Parameter | Type | Description |
---|---|---|
contractAddress | string | the address of the deployed contract |
Returns:
Promise<import("..").Split>