Blockchain Wallet Access
Last updated
Last updated
Additionally, a web3 provider from the ethers
library is generated, enabling participating websites to authorize blockchain transactions on behalf of users. Ethers, accessible at , offers a robust JavaScript abstraction of the blockchain. When combined with Credenza's libraries, it simplifies smart contract interaction to the level of any JavaScript library.
However, preceding Ethers, several native methods are available to query wallet assets and attributes directly, bypassing smart contract interaction. For instance, Passport features a method called getNFTs
, designed to retrieve all NFTs owned by a wallet. In the context of token-gating, confirming NFT ownership can be invaluable for granting access to digital content or physical spaces.
Furthermore, Credenza manages a standard ERC20 utility token named CRED, serving as stored value (distinct from speculative cryptocurrencies). Invoking getTokens
exposes all ERC20 tokens, including CRED, held by the logged-in user.