Function useKycRequests

  • Parameters

    • contractAddress: string
    • provider: Provider
    • rawProvider: RawProvider

    Returns {
        dropKYCRequest: (() => Promise<TransactionResponse>);
        requestKYC: ((storageId: string) => Promise<TransactionResponse>);
        usersRequestInfo: ((accountAddress: string) => Promise<[BigNumber, boolean] & {
            existingRequest: boolean;
            requestId: BigNumber;
        }>);
    }

    • dropKYCRequest: (() => Promise<TransactionResponse>)
        • (): Promise<TransactionResponse>
        • Returns Promise<TransactionResponse>

    • requestKYC: ((storageId: string) => Promise<TransactionResponse>)
        • (storageId: string): Promise<TransactionResponse>
        • create a request

          Parameters

          • storageId: string

            storage service entity id

          Returns Promise<TransactionResponse>

    • usersRequestInfo: ((accountAddress: string) => Promise<[BigNumber, boolean] & {
          existingRequest: boolean;
          requestId: BigNumber;
      }>)
        • (accountAddress: string): Promise<[BigNumber, boolean] & {
              existingRequest: boolean;
              requestId: BigNumber;
          }>
        • Parameters

          • accountAddress: string

          Returns Promise<[BigNumber, boolean] & {
              existingRequest: boolean;
              requestId: BigNumber;
          }>

Generated using TypeDoc