Standalone integration
A step-by-step guide for implementing Beacon Wallet to your AO application.
Installing AO-Sync
Setup
Wrap your application with the AOSyncProvider
.
Usage
You can access all the function inside our SDK via the useWallet
hook.
Connecting a wallet
When calling the connect
method users will be presented with a QR code, that when scanned by the Beacon app creates a connection between your web app and Beacon for secure message signing.
Connect modal
While connecting users will be presented with the following:
Retrieving wallet details
Once connected, you can use the below methods to retrieve info about the connected wallet.
getAddress
returns address of currently connected wallet.
getAllAddresses
Returns list of all addresses present in the users Beacon app.
Sending AR
You can use the sendAR method in order to create an Arweave transfer.
signAOMessage
Signs an ANS-104 item and submits the signed transaction to the AO network. When called the user will be promoted to approve the transaction inside the Beacon mobile app.
Last updated