MultiAuthEoa
Authenticate FunWallet Transactions with EOAs and/or Social Logins
Overview
MultiAuthEoa allows FunWallets to authenticate Transactions with a mix of Externally Owned Accounts (EOAs) and Social Logins.
Currently, EOA authentication can be used with the parameters outlined in the Eoa auth overview. The FunWallet SDK supports all the social authentication types (e.g Twitter, Apple, Discord, etc) offered by social authentication providers, such as Magic Link & Web3Auth. We suggest using the Magic Link provider as it allows for transferring tokens to Twitter handles.
Constructor
const multiAuthEoa = new MultiAuthEoa(input)
Parameters
Methods
sendTx
Sends a Transaction from the EOAconst receipt = multiAuthEoa.sendTx(tx)// orconst receipt = multiAuthEoa.sendTx(actionFunc(parameters))
Parameters
Returns
getUniqueId
Get the authentication id needed for calculating wallet address
const uniqueId = multiAuthEoa.getUniqueId()
Returns
getSigner
Get the ethers.Signer assiciated with the EOAconst signer = multiAuthEoa.getSigner()
Returns
getOwnerAddr
Get's the public addresses of the FunWallet's Authenticators in an Array
const addr = await multiAuthEoa.getOwnerAddr()
Returns
signHash
Get's the public addresses of the FunWallet's Authenticators in an Array
const signedHash = await multiAuthEoa.signHash(hash)