JSFiddle - React, Tailwind, and code Playground
by eledra
JavaScript
var foo = async function() {
console.log('start request');
await window['keplr'].experimentalSuggestChain({
features: ['no-legacy-stdTx'],
chainId: "aura-testnet",
chainName: "aura testnet",
rpc: "https://tendermint-testnet.aura.network",
rest: "https://rpc-testnet.aura.network",
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "aura",
bech32PrefixAccPub: "aura" + "pub",
bech32PrefixValAddr: "aura" + "valoper",
bech32PrefixValPub: "aura" + "valoperpub",
bech32PrefixConsAddr: "aura" + "valcons",
bech32PrefixConsPub: "aura" + "valconspub",
},
currencies: [{
coinDenom: "AURA",
coinMinimalDenom: "uaura",
coinDecimals: 6,
// coinGeckoId: "aura",
}, ],
feeCurrencies: [{
coinDenom: "AURA",
coinMinimalDenom: "uaura",
coinDecimals: 6,
// coinGeckoId: "uaura",
}, ],
stakeCurrency: {
coinDenom: "AURA",
coinMinimalDenom: "uaura",
coinDecimals: 6,
// coinGeckoId: "uaura",
},
coinType: 118,
gasPriceStep: {
low: 0.001,
average: 0.0025,
high: 0.004
},
walletUrlForStaking: "https://stake.aura.network"
});
console.log('finish request');
};
setTimeout(() => {
foo()
console.log(window.keplr)
}, 1001);
console.log('hello');