cede.store provider
WARNING : THIS PACKAGE IS IN DEVELOPMENT AND DOES NOT DESCRIBE THE ACTUAL CONDITION OF THE TOOL.
The BaseProvider
implements the Ethereum JavaScript provider specification ([EIP-1193]), but must be modified by a sub-class in order to function.
StreamProvider
is such a sub-class, which synchronizes its state and marshals JSON-RPC messages via a duplex stream.
CedeInpageProvider
further extends StreamProvider
to support legacy provider interfaces in addition to [EIP-1193], and is used to instantiate the object injected by cede.store into web pages as window.cede
.
Documentation
For more details, check the documentation
.
Installation
npm install @cedelabs/providers
Usage
import { detectCedeProvider } from '@cedelabs/providers';
const provider = await detectCedeProvider();
provider.request({ method: "connect" });
Do Not Modify the Provider
The Provider object should not be mutated by consumers under any circumstances.
The maintainers of this package will neither fix nor take responsbility for bugs caused by third parties mutating the provider object.