Web3RpcError.unauthorized constructor
Web3RpcError.unauthorized([
- String message = 'Unauthorized'
The calling document holds no account grant (EIP-1193 4100).
Use this for "not connected yet / grant revoked", never for "user said
no" — the latter is userRejected (4001).
Implementation
factory Web3RpcError.unauthorized([
String message = 'Unauthorized',
]) =>
Web3RpcError(4100, message);