- useKycRequests(contractAddress: string, provider: Provider, rawProvider: RawProvider): {
dropKYCRequest: (() => Promise<TransactionResponse>);
requestKYC: ((storageId: string) => Promise<TransactionResponse>);
usersRequestInfo: ((accountAddress: string) => Promise<[BigNumber, boolean] & {
existingRequest: boolean;
requestId: BigNumber;
}>);
}
-
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>
-
Returns Promise<TransactionResponse>
-
usersRequestInfo: ((accountAddress: string) => Promise<[BigNumber, boolean] & {
existingRequest: boolean;
requestId: BigNumber;
}>)
-
- (accountAddress: string): Promise<[BigNumber, boolean] & {
existingRequest: boolean;
requestId: BigNumber;
}>
-
Returns Promise<[BigNumber, boolean] & {
existingRequest: boolean;
requestId: BigNumber;
}>
create a request