Skip to main content
A signer that uses JSON-RPC to sign transactions and messages.

Extends

Constructors

new JsonRpcSigner()

Creates a new JsonRpcSigner instance.

Parameters

Returns

JsonRpcSigner

Overrides

AbstractSigner.constructor

Source

providers/provider-jsonrpc.ts:328

Properties

Methods

connect()

Connects the signer to a provider.

Parameters

Returns

Signer The connected signer.

Overrides

AbstractSigner.connect

Throws

If the signer cannot be reconnected.

Source

providers/provider-jsonrpc.ts:342

getAddress()

Gets the address of the signer.

Returns

Promise<string> The address of the signer.

Overrides

AbstractSigner.getAddress

Source

providers/provider-jsonrpc.ts:353

sendTransaction()

Sends a transaction.

Parameters

Returns

Promise<TransactionResponse> The transaction response.

Overrides

AbstractSigner.sendTransaction

Throws

If the transaction cannot be sent.

Source

providers/provider-jsonrpc.ts:438

signMessage()

Signs a message.

Parameters

Returns

Promise<string> The signed message.

Overrides

AbstractSigner.signMessage

Source

providers/provider-jsonrpc.ts:551

signTransaction()

Signs a transaction.

Parameters

Returns

Promise<string> The signed transaction.

Overrides

AbstractSigner.signTransaction

Throws

If the transaction cannot be signed.

Source

providers/provider-jsonrpc.ts:521

signTypedData()

Signs typed data.

Parameters

Returns

Promise<string> The signed typed data.

Overrides

AbstractSigner.signTypedData

Source

providers/provider-jsonrpc.ts:564

unlock()

Unlocks the account.

Parameters

Returns

Promise<boolean> True if the account is unlocked, false otherwise.

Source

providers/provider-jsonrpc.ts:583