Class

Face

Face(config)

Constructor

# new Face(config)

Face SDK

Parameters:
Name Type Description
config object

Config.

apiKey string

Api key.

network string

Blockchain Network such as Goerli, Mumbai, Ethereum etc.

View Source Face.ts, line 11

Members

Methods

# getAddresses() → {Promise.<Array.<string>>}

Return the wallet address array

View Source Face.ts, line 133

Promise.<Array.<string>>

# getChainId() → {Promise.<number>}

Return the chain id of current network

View Source Face.ts, line 147

Promise.<number>

# getEthLikeProvider() → {Provider}

Return provider for the EVM blockchain provider

View Source Face.ts, line 126

Provider

# getNetwork() → {Network}

Return the set network

View Source Face.ts, line 140

Network

# async switchNetwork(network) → {Promise.<number>}

Switch network

Parameters:
Name Type Description
network Network | number

View Source Face.ts, line 156

Promise.<number>