0.1.9 • Published 4 years ago

@enslogin/sdk v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

ENS Login SDK

ENS Login SDK allows you to integrate ENS Login into your Dapp

Installation

yarn add @enslogin/sdk

Setting up on your Dapp

import ENSLoginSDK from '@enslogin/sdk'
const config = {
	provider:
	{
		network: 'goerli',
		ens: '0x112234455c3a32fd11230c42e7bccd4a84e02010'
	},
	ipfs:{
		host: 'ipfs.infura.io',
		port: 5001,
		protocol: 'https',
	}
}

ENSLoginSDK.connect(username, config).then((provider)=>{
    window.ethereum = provider
    window.web3 = new Web3(provider)
    provider.enable()  
})

Setting up provider into your ENS name

Until ENS manager supports arbitrary text record, please update web3-provider field via etherscan. You can get the labelhash of your node via this pastebin

npm.io

Supported networks

  • Goerli, Rinkeby, Ropsten

Supported providers

Config params

Provider

  • mandatory network: name or node address
  • optional ens: address of the ens root on that network (default provided by ethers.js for named networks)

IPFS

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago