CCC Docs
    Preparing search index...

    Interface AddressResolver

    Resolves address representations that Address.fromString cannot parse, such as human-readable names, to scripts.

    interface AddressResolver {
        shouldResolve(address: string): boolean;
        resolve(
            address: string,
            client: Client,
        ): Promise<
            | {} & { codeHash: BytesLike; hashType: HashTypeLike; args: BytesLike }
            | undefined,
        >;
    }
    Index
    • Whether this resolver handles the representation.

      Parameters

      • address: string

      Returns boolean