Interface NFTConfig

interface NFTConfig {
    client: SynapseLikeClient;
    das?: {
        baseUrl: string;
        getAssetByIdPath?: string;
        getAssetPath?: string;
        getAssetProofPath?: string;
        headers?: Record<string, string>;
    };
    defaultCommitment?: Commitment;
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    };
}

Properties

das?: {
    baseUrl: string;
    getAssetByIdPath?: string;
    getAssetPath?: string;
    getAssetProofPath?: string;
    headers?: Record<string, string>;
}
defaultCommitment?: Commitment
fetch?: {
    (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
    (input: string | URL | Request, init?: RequestInit): Promise<Response>;
}

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | URL | Request
      • Optionalinit: RequestInit

      Returns Promise<Response>