JSON-RPC Account
A JSON-RPC Account is an Account whose signing keys are stored on the external Wallet. It defers signing of transactions & messages to the target Wallet over JSON-RPC.
Usage
A JSON-RPC Account can just be initialized as an Address string, In the usage below, we are extracting the address from a Browser Extension Wallet (e.g. Fluent) with the window.fluent Provider via cfx_chainId:
import "cive/window";
import { , } from "cive";
import { } from "cive/chains";
const [] = await ..({
: "cfx_requestAccounts",
});
const = ({
: ,
: ,
: (.!),
});