setContractId
Description
Parameters
Returns
Example
import { ThothIdSDK } from "thoth-id-sdk";
async function main() {
// Instantiate the Sdk
const sdk = new ThothIdSDK();
// For testing, force the Sdk to use a specific contract ID
sdk.setContractId("YOUR_TEST_CONTRACT_ID");
// Now, all calls will be directed to "YOUR_TEST_CONTRACT_ID"
// For example, this will try to resolve "example.htr" on your test contract
const owner = await sdk.resolveName("example.htr");
}
main();Last updated

