mainnet
kovan
rinkeby
ropsten
goerli
networkName
- default: mainnet
rpcUri
- default: https://mainnet.rpc.authereum.com
webUri
- default: https://authereum.com
xsUri
- default: https://x.authereum.com
disableNotifications
- default: false
blockedPopupRedirect
- default true
forceRedirect
- default false
ready
iframeReady
openPopup
closePopup
popupBlocked
login
logout
dappKeyExpired
error
login()
logout()
showWidget(bool?)
hideWidget()
getDappKey()
getTransactionReceipt(transactionHash)
receipt.status
being false
if the top-level transaction failed or any of the internal transactions failed. The receipt status will be true
if both the top-level transaction succeeded and all the internal transactions succeeded. hasRecoveryEnabled()
true
if user has a recovery option set.waitForTransactionReceipt(transactionHash)
signMessageWithSigningKey(message)
getSigningKeyAddress()
isAuthenticated()
true
if user is logged into dapp with Authereum.isContractDeployed(accountAddress?)
true
if account address is a deployed contract.addFunds(options?)
countryCode
: 2-letter country code (ie 'US', 'GB', etc)tokenSymbol
: Token symbol (ie 'ETH', 'DAI' ,etc)sourceAmount
: Source fiat amount (ie 25, 100, etc)version()
index.js
index.js
to create a bundled file which can be ran in the browser:bundle.js
in your html: