Skip to main content

Function: createSigner()

createSigner(__namedParameters): Signer

Create a signer with a private key, a provider URL, and a chain. Optionally, pass the chain name or ID to create a static network and reduce calls made by the provider (by not checking the chain ID).

Parameters

__namedParameters

__namedParameters.chainNameOrId?: number | keyof TablelandNetworkConfig

__namedParameters.options?: JsonRpcApiProviderOptions= {}

__namedParameters.privateKey: string

__namedParameters.providerUrl: string

Returns

Signer

Source

@tableland/sdk/src/helpers/ethers.ts:261