I would like to use rampnetwork but its giving AUTH.ACCESS.INVALID_HOST_API_KEY error also they allow base network now and would like to have that as a supported chainNetwork
@josephrios56 Thanks for reaching out.
Your issue has been forwarded to our team and we will get back with further updates.
looking forward to a quick resolution
update on this issue would love to have this fixed
setting up tourus
const torusPlugin = new TorusWalletConnectorPlugin({
torusWalletOpts: {},
walletInitOptions: {
whiteLabel: {
topupHide: false,
theme: { isDark: true, colors: { primary: '#CFFF12' } },
logoDark: WagrLogo1,
logoLight: WagrLogo1
},
useWalletConnect: false,
enableLogging: false,
showTorusButton: false
}
});
calling torus with sveltekit store
await $torus.initiateTopup('rampnetwork', {
selectedAddress: String($signerAddress),
selectedCurrency: 'USD', // Fiat currency
fiatValue: 100, // Fiat Value
selectedCryptoCurrency: 'ETH', // Cryptocurreny `SOL`, `MATIC` etc.
chainNetwork: 'mainnet' // Blockchain network
});
throws error
{
"hostApiKey": "dw9fe8drpzmdfuks79ub5hvmqzuyjbme4kwkwkqf",
"code": "AUTH.ACCESS.INVALID_HOST_API_KEY",
"statusCode": 403
}
from endpoint https://api-instant.ramp.network/api/host-api/quote?hostApiKey=dw9fe8drpzmdfuks79ub5hvmqzuyjbme4kwkwkqf
@josephrios56 The error indicates that the API key is incorrect. Can you generate a new API key for the ramp endpoint and check?
this is web3auth provided key, theres no way to provide my own key
Are you adding the line await web3auth.addPlugin(torusPlugin)
in your code?:
import { TorusWalletConnectorPlugin } from "@web3auth/torus-wallet-connector-plugin";
const torusPlugin = new TorusWalletConnectorPlugin({
torusWalletOpts: {},
walletInitOptions: {
whiteLabel: {
theme: { isDark: true, colors: { primary: "#00a8ff" } },
logoDark: "https://web3auth.io/images/w3a-L-Favicon-1.svg",
logoLight: "https://web3auth.io/images/w3a-D-Favicon-1.svg",
},
useWalletConnect: true,
enableLogging: true,
},
});
await web3auth.addPlugin(torusPlugin); // add plugin to web3auth instance
await torusPlugin.initiateTopup("moonpay", {
selectedAddress: "wallet_address",
selectedCurrency: "USD", // Fiat currency
fiatValue: 100, // Fiat Value
selectedCryptoCurrency: "ETH", // Cryptocurreny `SOL`, `MATIC` etc.
chainNetwork: "mainnet", // Blockchain network
});
yes moonpay works fine its just rampnetwork that doesn’t
Ok, I have forwarded your issue to our team and will get back once there is an update to share.
can i get an update on this??? its been over 2 months
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.