Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 529 Bytes

File metadata and controls

30 lines (24 loc) · 529 Bytes

Trust Web3 Provider

//   ___ ___       ___  __   ___
//  |__   |  |__| |__  |__) |__  |  |  |\/|
//  |___  |  |  | |___ |  \ |___ \__/  |  |
//

Ethereum JavaScript Provider Implementation

Config Object

const config: {
  rpc?: string;
  chainId?: string;
  overwriteMetamask?: boolean;
  supportedMethods?: string[];
  unsupportedMethods?: string[];
  disableMobileAdapter?: boolean;
  isTrust?: boolean;
} = {};

Usage

const ethereum = new EthereumProvider(config);