Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Whitelist Operations

Jon Ramvi edited this page Feb 17, 2022 · 1 revision

Check whitelist status

isWhitelisted(userAddress: string): Promise<boolean>

Whitelist user

A user needs to be allowed access to BRØK before doing any transactions. This is done through a standard KYC procedure by the Fagsystem. After the KYC is completed the Fagsystem grants access to BRØK with the following function.

  • The Fagsystem needs to have signed an agreement with Brønnøysundregistrene before being able to run this function

Parameters

  • userAddress: the Ethereum wallet address of the user aka. Externally Owned Account. Note that you need to challenge the wallet's address or use "Login with Ethereum" to be certain the address really is in the user's. Example: 0xab5801a7d398351b8be11c439e05c5b3259aec9b
  • signer: Your Ethereum Signer. This is how the transaction is funded unless you use Gas as a Service (GaaS). In which case your signer is used to prove the order of Ether to the given userAddress
  • enableGaaS: Symfoni GaaS will pay the transaction gas instead of yourself. The cost will of the service will be invoiced. Example: true
whitelistUser(userAddress: string, signer: Signer, enableGaaS: boolean): Promise<boolean>