Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 2.43 KB

walletconnect-project-id-for-contract-read-write.md

File metadata and controls

54 lines (31 loc) · 2.43 KB

WalletConnect Project ID for contract Read/Write

{% hint style="info" %} The latest versions of Blockscout use WalletConnect for Read and Write functionality with smart contracts. The frontend variable NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID must be enabled with your project ID for this feature to work. {% endhint %}

Setting up a WalletConnect Project ID

1) Go to https://cloud.walletconnect.com/sign-in and sign in or create an account.

2) Create a new Project

3) Add your project information (name and project homepage) and click continue.

4) Select WalletKit as the SDK.

5) Select Javascript as the platform and create your project.

6) Scroll down to see your basic information, including your project ID. Before using, however, set the Allowed Domains list. Please include any urls which host your explorer(s) here.

{% hint style="warning" %} This step is important because the Project ID will be exposed in the browser. Setting allowed domains prevents unauthorized usage of your ID. {% endhint %}

You can also verify your domain. This is not required but is recommended for security. Instructions are included in the interface.

Domain verification process

7) Copy your project ID and add in the ENV.

$ export NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=54b4....8dd05

{% hint style="success" %} You Blockscout instance will now support the Wallet Connect Project ID for Contract Read and Write functionality.

-> See more front-end ENVs related to Blockchain and contract interaction. {% endhint %}