Implementation Guide
function createUserDeepLink(walletAddress) {
const serverDomain = 'synapse.textrp.io';
return `https://app.textrp.io/#/user/@${walletAddress}:${serverDomain}`;
}function createRoomDeepLink(roomIdentifier) {
const serverDomain = 'synapse.textrp.io';
const roomPrefix = roomIdentifier.startsWith('!') ? 'room/' : 'room/#';
return `https://app.textrp.io/#/${roomPrefix}${roomIdentifier}:${serverDomain}`;
}EXAMPLE
<!DOCTYPE html>
<html>
<head>
<title>NFT Marketplace</title>
</head>
<body>
<h2>NFT Details</h2>
<!-- Display NFT Information -->
<img src="path_to_nft_image.jpg" alt="NFT Image">
<p>NFT Name: Awesome NFT</p>
<p id="nftOwner">Owner Wallet Address: rExampleOwnerWalletAddress</p>
<button onclick="contactSeller()">Contact Seller</button>
<script>
function contactSeller() {
var ownerWalletAddress = document.getElementById('nftOwner').innerText.split(': ')[1];
var contactLink = `https://app.textrp.io/#/user/@${ownerWalletAddress}:synapse.textrp.io`;
window.location.href = contactLink;
}
</script>
</body>
</html>Last updated