Support Leap
Add Suggest Chain
Open the browser console
Run the code below
The same network (with the same chainId) can only add one
await window.leap.experimentalSuggestChain({
chainId: "fxcore",
chainName: "f(x)Core",
rpc: "https://fx-json.functionx.io:26657",
rest: "https://fx-rest.functionx.io",
bip44: {
coinType: 60,
},
bech32Config: {
bech32PrefixAccAddr: "fx",
bech32PrefixAccPub: "fxpub",
bech32PrefixValAddr: "fxvaloper",
bech32PrefixValPub: "fxvaloperpub",
bech32PrefixConsAddr: "fxvalcons",
bech32PrefixConsPub: "fxvalconspub",
},
currencies: [
{
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
},
],
feeCurrencies: [
{
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
gasPriceStep: {
low: 4000000000000,
average: 4000000000000,
high: 4100000000000,
},
},
],
stakeCurrency: {
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
},
image: "https://raw.githubusercontent.com/cosmos/chain-registry/master/fxcore/images/fx.svg",
});
await window.leap.experimentalSuggestChain({
chainId: "dhobyghaut",
chainName: "f(x)Core Testnet",
rpc: "https://testnet-fx-json.functionx.io:26657",
rest: "https://testnet-fx-rest.functionx.io",
bip44: {
coinType: 60,
},
bech32Config: {
bech32PrefixAccAddr: "fx",
bech32PrefixAccPub: "fxpub",
bech32PrefixValAddr: "fxvaloper",
bech32PrefixValPub: "fxvaloperpub",
bech32PrefixConsAddr: "fxvalcons",
bech32PrefixConsPub: "fxvalconspub",
},
currencies: [
{
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
},
],
feeCurrencies: [
{
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
gasPriceStep: {
low: 4000000000000,
average: 4000000000000,
high: 4100000000000,
},
},
],
stakeCurrency: {
coinDenom: "FX",
coinMinimalDenom: "FX",
coinDecimals: 18,
coinGeckoId: "fx-coin",
},
image: "https://raw.githubusercontent.com/cosmos/chain-registry/master/fxcore/images/fx.svg",
});
Last updated