Skip to content

Instantly share code, notes, and snippets.

@ajb413

ajb413/App.tsx Secret

Created May 9, 2023 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajb413/6521779f8722ab51eb98588ff09c8a17 to your computer and use it in GitHub Desktop.
Save ajb413/6521779f8722ab51eb98588ff09c8a17 to your computer and use it in GitHub Desktop.
rpc.sendRPC({ type: 'getSelectedMarket' }).then(({ selectedMarket }) => {
console.log('selectedMarket', selectedMarket);
// selectedMarket {
// "chainId": 1,
// "baseAssetSymbol": "USDC",
// "marketAddress": "0xc3d688B66703497DAA19211EEdff47f25384cdc3"
// }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment