
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@bchdomains/react-lns-address
Advanced tools
The Address component is a drop-in React component for your dapps. Anytime you need to take an address as an input, you can use the React LNS Address Component instead to resolve LNS names or provide feedback with reverse records.


React LNS Address Component can be installed via npm:
$ yarn add @bchdomains/react-lns-address
$ npm install --save @bchdomains/react-lns-address
resolutionObject. This has 4 properties:{
name: 'pat.bch',
address: '0x123...',
type: "address" // "address" or "name" is the inputValue type
input: "0x123..." // if the resolve is called and returns an error, it will return with the other properties as null and only input will be defined
}
small class renders component in small size
All styling made in style.css. It can be take as a start point.
.cmp-address - reserved class for that component.
.cmp-address.small - for small type of component. Overriding other classes under that parent you can safety style a component.
import ENSAddress from '@bchdomains/react-lns-address'
function Component() {
return <ENSAddress provider={window.web3 || window.ethereum} />
}
import React, { useState } from 'react'
import ENSAddress from '@bchdomains/react-lns-address'
function AddressInput() {
const [resolved, setResolved] = useState({})
const [type, setType] = useState(undefined)
return (
<>
<ENSAddress
provider={window.web3 || window.ethereum}
onResolve={({ name, address, type }) => {
if (type) {
setResolved({
value: address,
type
})
}
}}
/>
{resolvedInput.type === 'address' &&
`We found your reverse record ${resolved.value}`}
{resolvedInput.type === 'name' &&
`We found your address record ${resolved.value}`}
</>
)
}
Original version was built by @industral, which was then edited and published by @jefflau
FAQs
React LNS address component
We found that @bchdomains/react-lns-address demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.