Create a Relay instance
Fetch PKPs associated with the given auth method
Body of the request
Response from the relay server
Generate options for registering a new credential to pass to the authenticator
Optional
username: stringOptional username to associate with the credential
Registration options for the browser to pass to the authenticator
Mint a new PKP for the given auth method
Body of the request
Response from the relay server
Mints a new pkp with all AuthMethods provided. Allows for permissions and flags to be set separately.
If no permissions are provided then each auth method will be assigned 1
for sign anything
If no flags are provided then sendPkpToitself
will be false, and addPkpEthAddressAsPermittedAddress
will be true
It is then up to the implementor to transfer the pkp nft to the pkp address.
note When adding permissions, each permission should be added in the same order the auth methods are ordered
AuthMethods authentication methods to be added to the pkp
Optional
addOptional
pkpOptional
sendpkp information
Poll the relay server for status of minting request
Request ID to poll, likely the minting transaction hash
Optional
pollInterval: number = 15000Polling interval in milliseconds
Optional
maxPollCount: number = 20Maximum number of times to poll
Response from the relay server
Static
getURL for Lit's relay server
Class that communicates with Lit relay server