List<Type> parametersList = new ArrayList<>();
parametersList.add(new Address(from));
parametersList.add(new Address(to));
parametersList.add(new Uint256(new BigInteger(tokenId)));
Function function = new Function("safeTransferFrom", parametersList, outList);
String encodedFunction = FunctionEncoder.encode(function);
RawTransaction etherTransaction = RawTransaction.createTransaction(nonce, gasPrice, gasLimit,
contractAddress,encodedFunction);
byte[] signature = TransactionEncoder.signMessage(etherTransaction,1, credentials);
String signatureHexValue = Numeric.toHexString(signature);
EthSendTransaction ethSendTransaction = web3j.ethSendRawTransaction(signatureHexValue).send();
如上所示,我使用web3j发起了一个safeTransferFrom交易,返回了交易hash,但是etherscan搜不到对应的交易hash,并且nft并未转账成功,钱包也未扣款,这是为什么呢