# safeTransferFrom not working with web3JS

**URL:** https://forum.openzeppelin.com/t/safetransferfrom-not-working-with-web3js/8975
**Category:** Contracts
**Tags:** erc721
**Created:** [May 22, 2021, 7:04pm UTC](https://forum.openzeppelin.com/t/safetransferfrom-not-working-with-web3js/8975 "2021-05-22T19:04:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jack](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/jack/32/6051_2.png) [@Jack](https://forum.openzeppelin.com/u/Jack)
#### Post date: [May 22, 2021, 7:04pm UTC](https://forum.openzeppelin.com/t/safetransferfrom-not-working-with-web3js/8975/1 "2021-05-22T19:04:53Z")

</div>

Hello, I’m currently testing a DApp, I’ve deployed an NFT smart contract using the Ropsten Net and Alchemy. Inside JS I am able to call functions such ownerOf, BalanceOf, etc…, but when I try to run safeTransferFrom, approve, or transferFrom it does not work. I am able to transfer the tokens from a metamask wallet to another, but when running the same function from JS, it does not work.

Functions tried:

```
contract.methods.transferFrom(_from, _to, 1).call({from: _from}),
contract.methods.transferFrom(_from, _to, 1).send({from: _from}),
contract.methods.safeTransferFrom(_from, _to, 1).call({from: _from})
contract.methods.safeTransferFrom(_from, _to, 1).send({from: _from}),

```

contract.methods.approve(\_to, 1).call(),

If anyone has any suggestions i’d really appreciate it, thanks.
