Skip to content

Commit d0a3f02

Browse files
Merge pull request 0xPolygon#342 from abdullahvenly/patch-1
Update index.md
2 parents 662fd2c + 378dae6 commit d0a3f02

File tree

1 file changed

+74
-28
lines changed

1 file changed

+74
-28
lines changed

docs/tools/wallets/venly/index.md

Lines changed: 74 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
!!! caution "Content disclaimer"
2-
Please view the third-party content disclaimer [here](https://github.com/0xPolygon/polygon-docs/blob/main/CONTENT_DISCLAIMER.md).
1+
!!! caution "Content disclaimer" Please view the third-party content disclaimer [here](https://github.com/0xPolygon/polygon-docs/blob/main/CONTENT_DISCLAIMER.md).
32

4-
Venly (prev. Arkane Network) allows you to easily integrate your app to the Polygon blockchain, whether you already have an app integrated with Web3 or are building a new app from scratch. Venly provides a smooth and delightful experience for you and your users on both web & mobile.
3+
**Venly** allows you to easily integrate your app to the Polygon blockchain, whether you already have an app integrated with Web3 or are building a new app from scratch. Venly provides a smooth and delightful experience for you and your users on both web & mobile.
54

6-
Venly will help you in interacting with the Polygon network, create blockchain wallets, create different asset types such as fungible (ERC20), and non-fungible tokens (ERC721 and ERC1155) and interact with smart contracts. Next to a superior developer experience, you can give your users a user-friendly interface.
5+
Venly will help you interact with the Polygon network, create blockchain wallets, create different asset types such as fungible (ERC20), and non-fungible tokens (ERC721 and ERC1155), and interact with smart contracts. Next to a superior developer experience, you can give your users a user-friendly interface.
76

8-
Each application is unique and has different needs, therefore they provide different ways of interacting with Venly. We recommend that web3 applications integrate the [Venly web3 provider](https://docs.venly.io/widget/web3-provider/getting-started), others may use the [Venly Widget](https://docs.venly.io/docs/widget-overview).
7+
Each application is unique and has different needs, providing different ways of interacting with Venly. We recommend that web3 applications integrate the [Venly web3 provider](https://docs.venly.io/docs/web3js), others may use the [Venly Widget](https://docs.venly.io/docs/widget-overview).
98

10-
## Key Features
9+
## Key features
1110

1211
- Support web and mobile.
1312
- Offers social logins.
@@ -18,50 +17,97 @@ Each application is unique and has different needs, therefore they provide diffe
1817
- Built for a mainstream audience.
1918
- Offers in-app customer support.
2019

21-
## Getting Started
20+
## Getting started
2221

23-
If you already support Web3 technology, you can improve the UX within your application by integrating the **Venly Web3 Provider**, a smart wrapper around the existing Web3 Ethereum JavaScript API.
22+
If you already support web3 technology, you can improve your application's UX by integrating the [Venly web3 provider](https://docs.venly.io/docs/web3js), a smart wrapper around the existing web3 Ethereum JavaScript API.
2423

25-
By making use of our Web3 provider you are able to leverage the full potential of Venly with minimal effort and you will be able to onboard users that are less tech savvy without making them leave your application or download third party plugins. Integrating just takes 2 steps and ~5 minutes.
24+
By using our [web3 provider](https://docs.venly.io/docs/web3js), you can leverage the full potential of Venly with minimal effort, and you will be able to onboard less tech-savvy users without making them leave your application or download third-party plugins. Integrating just takes two steps and 5 minutes!
2625

27-
!!! tip
28-
Venly provides a [Venly Widget](https://docs.venly.io/widget/) to help developers generate Web 3 support to their applications.
26+
**Don't support web3 yet?**
2927

30-
### Add the library to your project
28+
> Don't worry we've got you covered with our 📦 [Venly - Widget](https://docs.venly.io/docs/widget-overview).
29+
30+
### Step 1: Add the library to your project
3131

3232
Install the library by downloading it to your project via NPM.
3333

34-
```sh
34+
```javascript
3535
npm i @venly/web3-provider
3636
```
3737

38-
Add the script to the head of your page.
38+
Alternatively, you could also include the library directly from a CDN.
3939

40-
```js
41-
<script src="/node_modules/@venly/web3-provider/dist/web3-provider.js"></script>
40+
```javascript
41+
<script src="https://unpkg.com/@venly/web3-provider/umd/index.js"></script>
4242
```
4343

44-
After adding the javascript file to your page, a global **Venly** object is added to your window. This object is the gateway for creating the Web3 wrapper and fully integrates the widget - Venly Connect.
44+
```javascript
45+
<script src="https://cdn.jsdelivr.net/npm/@venly/web3-provider/umd/index.js"></script>
46+
```
4547

46-
### Initialize the Web3 provider
48+
## Step 2: Initialize the web3 provider
4749

4850
Add the following lines of code to your project, it will load the Venly web3 provider.
4951

50-
```js
51-
Venly.createProviderEngine({clientId: 'Testaccount'}).then(provider => {
52-
web3 = new Web3(provider);
53-
});
52+
### Simple
53+
54+
```javascript
55+
import Web3 from 'web3';
56+
import { VenlyProvider } from '@venly/web3-provider';
57+
58+
const Venly = new VenlyProvider();
59+
const options: VenlyProviderOptions = {
60+
clientId: 'YOUR_CLIENT_ID'
61+
};
62+
63+
const provider = await Venly.createProvider(options);
64+
const web3 = new Web3(provider);
5465
```
5566

56-
The web3 instance now works as if it was injected by Parity or Metamask. You can fetch wallets, sign transactions, and messages.
67+
### Advanced
68+
69+
```javascript
70+
import Web3 from 'web3';
71+
import { VenlyProvider } from '@venly/web3-provider';
72+
73+
const Venly = new VenlyProvider();
74+
const options = {
75+
clientId: 'YOUR_CLIENT_ID',
76+
environment: 'staging', //optional, production by default
77+
signMethod: 'POPUP', //optional, REDIRECT by default
78+
bearerTokenProvider: () => 'obtained_bearer_token', //optional, default undefined
79+
//optional: you can set an identity provider to be used when authenticating
80+
authenticationOptions: {
81+
idpHint: 'google'
82+
},
83+
secretType: 'ETHEREUM' //optional, ETHEREUM by default
84+
};
85+
86+
const provider = await Venly.createProvider(options);
87+
const web3 = new Web3(provider);
88+
```
5789

58-
**Congratulations! Your dApp now supports Venly.**
90+
You can fetch wallets, and sign transactions, and messages.
5991

60-
!!! info
61-
To connect with a personalised [Client ID](https://docs.venly.io/widget/deep-dive/authentication#client-id), and access our production environment, please request access one using this [form](https://forms.venly.io/clientID).
92+
Congratulations, your dapp now supports Venly.
93+
94+
Ready to try out the Wallet-Widget? [Click here to get started](https://docs.venly.io/docs/widget-getting-started).
95+
Want to know more about what Venly has to offer? [Check out the documentation](https://docs.venly.io/docs/widget-overview).
6296

6397
## More about Venly
6498

65-
What makes Venly (prev. Arkane) stand out is their commitment to supporting the ecosystem. Not only their wallet users, by explaining what gas is, or by helping them import an Ethereum wallet into Polygon, but also the developers that are using Venly to build new upcoming products.
99+
Venly stands out because of its commitment to supporting not only their wallet users by explaining what gas is, or by helping them import an Ethereum wallet into Polygon, but also the developers that are using Venly to build new products.
100+
101+
At Venly, we offer a diverse range of products spanning various categories, including Wallet Solutions, NFT Tools, and Marketplaces. Let's begin with a brief overview of these three product categories:
102+
103+
- [Wallet solutions](https://docs.venly.io/docs/wallet-api-overview): Empower your users by providing them with a wallet or seamlessly integrating the Venly wallet into your application.
104+
- [NFT tools](https://docs.venly.io/docs/nft-api-overview): Facilitate the creation and distribution of NFTs, along with fetching comprehensive NFT data and information.
105+
- [Marketplaces](https://docs.venly.io/docs/market-api-overview): Build your own NFT marketplace or list your NFT collection on our existing marketplace.
106+
107+
Even in their test environments, they add an in-app chat so that developers can directly communicate with the team behind the Venly platform. In case you want to learn more, check out their [detailed product documentation](https://docs.venly.io/docs/getting-started-with-venly).
108+
109+
## Resources
66110

67-
Even in their test environments, they add an in-app chat so that developers can directly communicate with the team behind the Venly platform. In case you want to learn more, check out their [detailed product documentation](https://docs.venly.io/widget/).
111+
- [Venly widget](https://docs.venly.io/docs/widget-overview)
112+
- [Web3 wallet providers](https://docs.venly.io/docs/ethersjs)
113+
- [Web3.js](https://docs.venly.io/docs/web3js)

0 commit comments

Comments
 (0)