Hi,
I am developer smart tools for NFT.
Moralis.initialize(“xxxx”);
Moralis.serverURL = “https://xxx.usemoralis.com:2053/server”;
const ethers = Moralis.web3Library;
login2 = async () => {
const web3 = await Moralis.enableWeb3().then(function async (user) {
const unsubscribe = Moralis.onChainChanged((chain) => {
const chainId = “0x1”; //Ethereum Mainnet
});
}).catch((error) => {
$("#connect_wallet").html(“Install Metamask”).attr(“href”,“https://metamask.io/download/”);
});
};
login = async () => {
Moralis.Web3.authenticate({signingMessage: “Welcome to Web!”}).then(function (user) {
//console.log(user.get(‘ethAddress’));
})
}
const offer = async () => {
await Moralis.Plugins.opensea.createBuyOrder({
network: ‘mainnet’,
tokenAddress: ‘0xaede4d0fa0bc1feaa4b437006174a7db8c21855c’,
tokenId: ‘1’,
tokenType: ‘ERC721’,
amount: 0.001,
userAddress: “0x13Dd87EB57e9F2d03e68F60937C7A55006Ec68bA”,
paymentTokenAddress: ‘0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2’
});
}