Procedure for Method 1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Moggy</title>
</head>
<script type="module">
import { getMetadata, getSatAt, getBlockHash } from '/content/ef7689dc2f504f63f8d13356f8928a2fec097b3b014c9fe53a1d1ddb5952f5dbi0'
let inscriptionId = window.location.pathname.split("/")[2];
window.onload = async function() {
let moduleLib = await getSatAt("1007647032624282", "-1")
let imp = '/content/' + moduleLib.id;
let metadata = await getMetadata(inscriptionId)
import(imp).then(compiler => {
return compiler.getSvg(metadata);
}).then(svg => {
document.body.appendChild(svg);
});
}
</script>
<body>
</body>
</html>Last updated