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â
});
}