degen-cube-portal / xumm4.html
ICExrp's picture
add this
a23e85c verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Xumm API Test</title>
<script type="module">
import { Xumm } from "../dist/index.js";
console.log("TS version");
const xumm = new Xumm(
"some-api-key",
"some-secret-key",
);
const main = async () => {
console.log("account:", await xumm.user?.account);
console.log("ping@1", await xumm.ping());
console.log('rates', await xumm.helpers?.getRates('EUR'))
console.log('jwt', await xumm.environment?.jwt)
console.log('bearer', await xumm.environment?.bearer)
console.log('openid', await xumm.environment?.openid)
console.log('ott', await xumm.environment?.ott)
console.log('payload', await xumm.payload?.create({TransactionType: 'SignIn'}))
};
main();
</script>
</head>
<body>
<h1>Xumm API Test</h1>
<p>Check browser console for output</p>
</body>
</html>