Spaces:
Running
Running
File size: 1,084 Bytes
a23e85c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<!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> |