Blockchain Wallet Access
In addition, an ethers web3 provider is generated so that participating website can authorize blockchain transactions on behalf of the user. Ethers is a library that provides a powerful Javascript abstraction of the blockchain which, when used with Credenza’s libraries, makes interacting with a smart contract as easy as working with any Javascript library.
But before we get to Ethers, there are several native methods available to query the assets and attributes of the wallet that bypass any smart contract interaction. Specifically, Passport has a method called getNFTs that is designed to query all NFTs owned by a wallet. In the spirit of token-gating, it can be very valuable to confirm ownership of an NFT to permit access to digital content or a physical space.
Last updated