+ Create Inscription
+ Sample BRC20 deploy payload
+ {'{ "p": "brc-20","op": "deploy","tick": "rrfq","max": "21000000","lim": "1000"}'}
+
+ Sample BRC20 mint payload
+ {'{ "p": "brc-20","op": "mint","tick": "rrfq","amt": "1000" }'}
+
+ Inscription text/plain payload
+ setContent(e.target.value)}
+ />
+
+
+
+ );
+};
diff --git a/example/src/components/transferRunes/index.tsx b/example/src/components/transferRunes/index.tsx
index a1931e2..71b3bef 100644
--- a/example/src/components/transferRunes/index.tsx
+++ b/example/src/components/transferRunes/index.tsx
@@ -1,6 +1,7 @@
import { useCallback, useMemo, useState } from 'react';
import Wallet, { BitcoinNetworkType } from 'sats-connect';
import { Button, Card, Input, Success } from '../../App.styles';
+import { getMempoolEndpoint } from '../../util';
interface Props {
network: BitcoinNetworkType;
@@ -52,13 +53,7 @@ const TransferRunes = ({ network }: Props) => {
})().catch(console.error);
}, [recipients]);
- const explorerUrl = useMemo(
- () =>
- network === BitcoinNetworkType.Mainnet
- ? `https://mempool.space/tx/${txnId}`
- : `https://mempool.space/testnet/tx/${txnId}`,
- [network, txnId]
- );
+ const explorerUrl = useMemo(() => `${getMempoolEndpoint(network)}tx/${txnId}`, [network, txnId]);
return (