Setting Up Your Own bOS Gateway

https://youtu.be/xAygBTn3SPY

https://alpha.near.org/#/calebjacob.near/widget/PostPage?accountId=root.near&blockHeight=87788409

  1. Fork the NEAR Social Viewer from the NEAR Discovery repo **https://github.com/near/near-discovery-alpha**

Untitled

  1. Adding dependencies + your blockchains version of ethers.js (Javascript Library allowing to send transactions, calls functions, support wallets and blockchain data retrieval) to the VM
  2. Adding the equivalent of wallet-selector. Ex; on Solana Wallet Adapter, CosmosKit, Algorand Wallet Select,
    1. Making sure RPC is either inherited from the wallet or adding support to the gateway for it

https://alpha.near.org/#/calebjacob.near/widget/PostPage?accountId=microchipgnu.near&blockHeight=87869466

Easily choose which widgets you want as your default widgets here https://github.com/near/near-discovery-alpha/blob/main/src/data/widgets.js

Screenshot 2023-03-22 at 1.51.57 PM.png

https://docs.near.org/discovery/tutorial/bos-gateway

Editing the VM

https://github.com/NearDeFi/bos-viewer/blob/master/src/vm/vm.js

Why?