window.ethereum.enable()but returns a promise that resolves to a
Web3instance. Use this when you need a fully functional
Web3instance, such as for making contract calls.
web3.utilswithout Web3 connectivity, use the following:
web3.eth.getAccounts()will not work. You can re-assign the variable using
Moralis.enableWeb3()later if you need full Web3 connectivity.
send()smart contract methods.
contractAddress(required): A smart contract address
abi(required): Contract's or function ABI(should be provided as an array)
functionName(required): A function name
params(required): Parameters needed for your specific function
msgValue(optional): Number|String|BN|BigNumber. The value transferred for the transaction in wei.
approve. It sets
amountas the allowance of
spenderover the caller’s tokens.
transactionHashwithout awaitng the entire transaction has been processed. And then after the transaction is processed, you can receive a
falsein your transaction options.
linkfunction after the user has been authenticated.
unlinkfunction removes the given address from the user's profile.
chainid(required): Network Chain Id
chainName(required): Network name
currencyName(required): Name of native currency
currencySymbol(required): Currency Symbol
rpcUrl(required): New RPC URL
blockExplorerUrl(required): BLock Explorer URL