Skip to main content

Inscribing Ordinals with the UniSat Wallet

The BRC20 Octopus example demonstrates how the BOB SDK can be used to inscribe Ordinals, both text and BRC20s are supported.

The demo uses the UniSat Wallet to interact with the Bitcoin network and sign transactions.

Example Code

The demo can be found here, follow the instructions in the README to setup the app and server.

With the app (and server) running locally you should see the following page:

web-app

BOB SDK

To add this functionality to your app use the inscribeData function and provide a custom RemoteSigner implementation for your wallet. This needs to be able to send Bitcoin to the commit address and sign the PSBT of the reveal transaction. Check the test in sdk/test/ordinals.test.ts for an example implementation.