Bep20 token using web 3

Can some guide me how to transfer token from one account to another using web3.js

sorry don’t think this is the best place for general programming questions, try to learn how web3.js works with its community’s help first and then associate it with binance api.

same issue. the example only have using web3.js to transfer BNB, but for BEP20 tokens, the same function works for ethereum doesnt work for binance chain.
nonce = web3.eth.getTransactionCount(fromacc)
tx = {
‘nonce’:nonce,
‘to’: toacc,
‘value’ : web3.toWei(0.01, “ether”),
‘gas’: 21000,
‘gasPrice’: web3.toWei(‘50’,‘gwei’)
}
signed_tx = web3.eth.account.signTransaction(tx, privatekey)
tx_hash = web3.eth.sendRawTransaction(signed_tx.rawTransaction)
trans = web3.toHex(tx_hash)
transaction = web3.eth.getTransaction(trans)
print ("transfer tx is ", transaction)
balance = web3.eth.getBalance(fromacc)
print (“balance:”, web3.fromWei(balance,“ether”))

keep throw exception, dont know why