Static
createStatic
createCreates a default client using a default provider (MAINNET, TESTNET, LABNET, LOCALNET and BUILDNET).
Default provider to be used by the client.
Chain id matching the network used by the provider
Whether to retry failed requests.
Optional
baseAccount: IAccountBase account to use with the client (optional).
A promise that resolves to a Client object.
Static
fromInitializes a new client using the wallet provider.
Provider from wallet provider to be used by the client.
Base account from the wallet provider to be used by the client.
Whether to retry failed requests.
A promise that resolves to a Client object.
Suitable for local node interactions.
Generated using TypeDoc
Massa Web3 ClientFactory class allows you to easily initialize a client to connect to the massa blockchain.
Remarks
The client can be initialized using a default provider (MAINNET, TESTNET, LABNET, LOCALNET and BUILDNET) or a custom set of providers.