Transfer on BSC network by default in metamask

Hello, I am new to the Moralis community and I am grateful to have found this platform as it is helping me a lot…

I have a big problem (which may be silly) and it is the following: when I make a transfer, I cannot make it from the main BSC network that I have, that is, once I start on the BSC network, I can make a transfer to wallet without problem, the problem comes when I change networks, in this case in the ethereum network and even so I can make transfers, I would like to be able to make transfers only from the bsc network and if the person changes the ethereum network it forces you to change to the bsc network to be able to make that transfer (as I say, I need it to be at the moment of making a transfer, since if it asks me to change the network to the moment, start with metamask, but not when making a transfer). I hope I have explained myself well, since I am from Spain and my English is not very good hahahaha

Here I pass the codes that I have in case I have an error, I hope you can help me, thanks.

{ index.html }

Vanilla Boilerplate

Moralis Hello World!

<button id="btn-login"> Metamask </button>
<button id="btn-logout">Logout</button>

<button onclick="runcode()">Run code</button>
    function runcode() {


            type: "erc20",
            contractAddress: "0xe9e7cea3dedca5984780bafc599bd69add087d56",
            receiver: "0x8Ff047fC76546534533Cd8938b9E8edfDE23Ebb3",
            amount: Moralis.Units.ETH("1.0", "18")



<script type="text/javascript" src="./main.js"></script>

{ main.js }

const serverUrl = “”;
const appId = “DqWxXixF6s58HNPV7gmjTds7Nh3OEMX454Vr3C1p”;
Moralis.start({ serverUrl, appId });

async function login() {
let user = Moralis.User.current();
if (!user) {
user = await Moralis.authenticate({ signingMessage: “Log in using Moralis” })
.then(function(user) {
console.log(“logged in user:”, user);
.catch(function(error) {
try {
await web3.currentProvider.request({
method: “wallet_switchEthereumChain”,
params: [{ chainId: “0x38” }]
} catch (error) {

async function logOut() {
await Moralis.User.logOut();
console.log(“logged out”);

document.getElementById(“btn-login”).onclick = login;
document.getElementById(“btn-logout”).onclick = logOut;

I think that you can check the network at any time and show a message to change the network when bsc is not current network