BaseConnector is an abstract class implementing wallet methods. It can be used to further widen the ecosystem with its standards.
Property | Details | Type |
---|---|---|
chain | stores the currently connected chainId | string |
name | stores the DID of the connected address | string |
provider | stores the connected provider object | any |
Method | Description | Returns | Optional | Prams |
---|---|---|---|---|
connect | Connecting the wallet | void | false | chainID(string) |
disconnect | Disconnecting the wallet | void | false | - |
getAccount | Returns the Account | string[] | false | - |
getChainId | Returns the ChainId | string | true | - |
getProvider | Returns the Provider object | any | false | - |
resolveDid | Returns the DID | string | false | address(string) |
signMessage | Requests message signature | void | false | message(string) |
switchChain | Requests chain switch | void | true | chainId(string) |