typescript-sdk

Home > @3rdweb/sdk > ThirdwebSDK > setProviderOrSigner

ThirdwebSDK.setProviderOrSigner() method

Signature:

setProviderOrSigner(providerOrSignerOrNetwork: ValidProviderInput): ProviderOrSigner;

Parameters

Parameter Type Description
providerOrSignerOrNetwork ValidProviderInput A valid “ethers” Provider, Signer or a Network address to create a Provider with.

Returns:

ProviderOrSigner

The Provider / Signer that was passed in, or a default ethers provider constructed with the passed Network.