-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from bob-collective/tom/metamask-demo-docs
metamask documentation
- Loading branch information
Showing
10 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
position: 3 | ||
collapsible: true | ||
collapsed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Use MetaMask to Inscribe and Transfer Ordinals, and Transfer BTC | ||
|
||
This example demonstrates how users can use a single web wallet to manage assets on both Bitcoin and BOB. The BOB MetaMask Snap can be used to inscribe and transfer ordinals, and transfer BTC, using only MetaMask as well as access any other EVM functions on BOB. | ||
|
||
:::info Example Code | ||
|
||
Find the code for this example on [our GitHub repository](https://github.com/bob-collective/demo-brc20-metamask). | ||
|
||
::: | ||
|
||
## Demo | ||
|
||
We have created a testnet demo of the application at [https://ordinals.gobob.xyz](https://ordinals.gobob.xyz), allowing anyone to inscribe, view and transfer ordinals, and transfer BTC. | ||
|
||
:::info MetaMask Flask | ||
|
||
This demo uses [MetaMask Snaps](https://metamask.io/snaps/) and can only be used with [MetaMask Flask](https://metamask.io/flask/). MetaMask Snaps are not currently supported on mobile wallets, so this demo will only run in the desktop version of Chrome or Firefox. | ||
|
||
::: | ||
|
||
### Creating a test profile | ||
|
||
To use this demo, you will need to create a new browser profile to use with the MetaMask Flask extension, as having MetaMask and MetaMask Flask installed in the same browser profile can cause issues. | ||
|
||
We recommend creating two test profiles so that you can test transferring Ordinals and BTC between two accounts. | ||
|
||
### Installing the MetaMask Snap | ||
|
||
Once you have installed MetaMask Flask, click the 'Connect Wallet' button on [https://ordinals.gobob.xyz](https://ordinals.gobob.xyz). MetaMask will prompt you to install the Snap, and give it permissions. | ||
|
||
Take note that your BTC wallet in the Snap derives its private keys from the MetaMask's seed phrase. | ||
|
||
### Funding your account | ||
|
||
One you have connected your wallet, you will see your derived BTC address in place of the 'Connect Wallet' button. Click on the address to copy it to the clipboard and then fund it using a BTC faucet: | ||
|
||
- [https://coinfaucet.eu/en/btc-testnet/](https://coinfaucet.eu/en/btc-testnet/) | ||
- [https://bitcoinfaucet.uo1.net/](https://bitcoinfaucet.uo1.net/) | ||
|
||
You can check your BTC balance by clicking on the 'Transfer BTC' button. | ||
|
||
:::note | ||
|
||
BTC may show in your balance before it is confirmed. If you try to use the application before the funds are confirmed, your balance will be too low and you may see errors. | ||
|
||
::: | ||
|
||
### Inscribing a text ordinal | ||
|
||
- Click on the 'Inscribe Ordinal' button, and then the 'Text' tab. | ||
- Enter the inscription text, and submit the form. | ||
- The ordinal will be shown in the Ordinals Portfolio table (this may take a few seconds) | ||
|
||
![inscribe-text](inscribe-text.png) | ||
|
||
### Inscribing an image ordinal | ||
|
||
:::info Supported file types | ||
|
||
Only `png` and `jpg` files are currently supported. | ||
|
||
::: | ||
|
||
- Click on the 'Inscribe Ordinal' button, and then the 'Image' tab. | ||
- Click on Select File (only png and jpg files are supported), select your image, and submit the form. | ||
- The ordinal will be shown in the Ordinals Portfolio table (this may take a few seconds) | ||
|
||
![inscribe-image](inscribe-image.png) | ||
|
||
### Transferring an ordinal | ||
|
||
- Click on the 'Transfer Ordinal' button next to the ordinal you would like to transfer. | ||
- Enter a testnet BTC address, and submit the form. | ||
|
||
![transfer-ordinal](transfer-ordinal.png) | ||
|
||
### Transferring BTC | ||
|
||
- Click on the 'Transfer BTC' button at the top of the page. | ||
- Enter a testnet BTC address, and submit the form. | ||
|
||
![transfer-btc](transfer-btc.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
docs/docs/build/examples/unified-assets-tracker/_category_.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
position: 4 | ||
collapsible: true | ||
collapsed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
position: 5 | ||
collapsible: true | ||
collapsed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters