@hashgraph/solo
    Preparing search index...
    interface Leases {
        create(
            namespace: NamespaceName,
            leaseName: string,
            holderName: string,
            durationSeconds: number,
        ): Promise<Lease>;
        delete(namespace: NamespaceName, name: string): Promise<V1Status>;
        read(namespace: NamespaceName, leaseName: string): Promise<Lease>;
        renew(
            namespace: NamespaceName,
            leaseName: string,
            lease: Lease,
        ): Promise<Lease>;
        transfer(lease: Lease, newHolderName: string): Promise<Lease>;
    }

    Implemented by

    Index

    Methods

    • Create a new lease

      Parameters

      • namespace: NamespaceName

        the namespace to create the lease in

      • leaseName: string

        the name of the lease

      • holderName: string

        the name of the lease holder

      • durationSeconds: number

        the duration of the lease in seconds\

      Returns Promise<Lease>

      the created lease