3

I've entered the wonderful world of Tezos from an EVM based background, with some familiarity with Web3/EthersJS. I'm currently trying to understand how dApps communicate with wallets. From my understanding, TZIP-10 is the proposal which sets the standards for how dApps can communicate to Wallets. I understand that Beacon is the implementation of this standard, but I have some confusion between a few repositories and would really appreciate if anyone could help clarify my understanding.

I'm trying to understand what the difference between @taquito/beacon and @airgap/beacon-sdk is: What roles do they play? Is the Beacon-SDK developed by AirGap required to use a wallet? What is the equivalent of a provider injection on Tezos?

2 Answers 2

2

Taquito is a library for building dApps and wallets from ECAD. Beacon is a library to communicate from a dApp to a wallet from AirGap

If you look at the source code for @taquito/beacon-wallet here: https://github.com/ecadlabs/taquito/blob/master/packages/taquito-beacon-wallet/src/taquito-beacon-wallet.ts you will see that it imports the airgap SDK

@Taquito/Beacon is simply a wrapper around airgap beacon to allow taquito users to easily add it to their dApps / wallets

4
  • Thanks! That was super helpful, is AirGap Beacon the only library that supports being able to communicate from dApp to Wallets or are there also alternative solutions?
    – Hevar
    Dec 7, 2022 at 14:57
  • @HevarAbrihem Beacon is the only one in production. Possible there will be others in the future. Currently everything in Tezos uses Beacon
    – Simon McLoughlin
    Dec 7, 2022 at 15:28
  • Gotcha, so I'd have to re-build Beacon from the ground up essentially if I want to connect a custom wallet / customise the modal
    – Hevar
    Dec 7, 2022 at 16:17
  • @Hevar no not at all. The modal has a predefined list of known wallets to choose from (that you could be added too once the wallet is available), the other option opens a QR code that any other wallet can use to connect to the dApp. Thats how wallets test while in development
    – Simon McLoughlin
    Dec 7, 2022 at 16:55
0

To your question in the comment, I think it will be (probably soon) possible to use Walletconnect v2 via Taquito for communication. See the following github links in Taquito and Beacon:

1
  • Hey David, I've heard that there are a few people working on this, I'm wondering if anyone has tried to build a simple wallet connector that has a customisable modal, or if is there is any library to start building a simple Beacon-like implementation for wallets.
    – Hevar
    Dec 7, 2022 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.