Methods
Below is a list of available methods in the OffchainClient:
Subname Management
createSubname(request: CreateSubnameRequest): Promise<void>;
deleteSubname(fullSubname: string): Promise<void>;
isSubnameAvailable(fullSubname: string): Promise<GetAvailableResponse>;
getFilteredSubnames(query: QuerySubnamesRequest): Promise<PagedResponse<SubnameDTO[]>>;
Record Management
addTextRecord(subname: string, key: string, value: string): Promise<void>;
deleteTextRecord(subname: string, key: string): Promise<void>;
getTextRecords(fullSubname: string): Promise<Record<string, string>>;
getTextRecord(fullSubname: string, key: string): Promise<GetRecordResponse>;
addDataRecord(fullSubname: string, key: string, data: any): Promise<void>;
deleteDataRecord(subname: string, key: string): Promise<void>;
getDataRecords(fullSubname: string): Promise<Record<string, any>>;
getDataRecord(fullSubname: string, key: string): Promise<GetRecordResponse>;
API Key Management
generateApiKey(request: CreateApiKeyRequest,signerWallet: string,signerFunc: SignerFunction): Promise<string>;
setApiKey(ensName: string, apiKey: string): void;