掃二維碼與項目經理溝通
我們在微信上24小時期待你的聲音
解答本文疑問/技術咨詢/運營咨詢/技術建議/互聯(lián)網(wǎng)交流
這是一個簡單的應用程序登錄用戶,在 Moralis 數(shù)據(jù)庫中創(chuàng)建用戶配置文件并將用戶事務同步到 Moralis 數(shù)據(jù)庫。

創(chuàng)新互聯(lián)于2013年成立,是專業(yè)互聯(lián)網(wǎng)技術服務公司,擁有項目成都網(wǎng)站制作、成都做網(wǎng)站網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元雅安做網(wǎng)站,已為上家服務,為雅安各地企業(yè)和個人服務,聯(lián)系電話:028-86922220
Vanilla Boilerplate
const serverUrl = "https://xxxxx.yourserver.com:2053/server";
const appId = "YOUR_APP_ID";
Moralis.start({ serverUrl, appId });
/** Add from here down */
async function login() {
let user = Moralis.User.current();
if (!user) {
try {
user = await Moralis.authenticate({ signingMessage: "Hello World!" });
console.log(user);
console.log(user.get("ethAddress"));
} catch (error) {
console.log(error);
}
}
}
async function logOut() {
await Moralis.User.logOut();
console.log("logged out");
}
document.getElementById("btn-login").onclick = login;
document.getElementById("btn-logout").onclick = logOut;
這個 ?React Boilerplate? 具有啟動新 ?dapp ?的所有功能,例如:
WalletConnect ?支持NFT頁面DEX?)頁面?Unity Boilerplate? 包括 ?C# Moralis SDK? 和一個示例 Unity 場景,允許您通過用戶的錢包登錄用戶、讀取他們的代幣和 NFT、與智能合約交互等等。
此樣板文件不用于生產用途。
這個 ?React Native Boilerplate? 具有啟動新的 iOS 或 Android web3 應用程序的所有功能,例如:
WalletConnect ?支持 NFT頁面 DEX?)頁面一個簡單的 ?NFT? 市場,允許用戶執(zhí)行以下操作:
NFT ?NFT ?NFT ?
我們在微信上24小時期待你的聲音
解答本文疑問/技術咨詢/運營咨詢/技術建議/互聯(lián)網(wǎng)交流