注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。A signer that uses JSON-RPC to sign transactions and messages.
Parameter | Type | Description |
---|---|---|
provider | JsonRpcApiProvider <any > | The JSON-RPC provider. |
address | string | The address of the signer. |
JsonRpcSigner
AbstractSigner
.constructor
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
provider | readonly | JsonRpcApiProvider <FetchRequest > | The provider this signer is connected to. | AbstractSigner .provider |
Parameter | Type | Description |
---|---|---|
provider | null | Provider | The provider to connect to. |
Signer
The connected signer.
AbstractSigner
.connect
Promise
<string
>
The address of the signer.
AbstractSigner
.getAddress
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction request. |
Promise
<TransactionResponse
>
The transaction response.
AbstractSigner.sendTransaction
Parameter | Type | Description |
---|---|---|
_message | string | Uint8Array | The message to sign. |
Promise
<string
>
The signed message.
AbstractSigner.signMessage
Parameter | Type | Description |
---|---|---|
_tx | TransactionRequest | The transaction request. |
Promise
<string
>
The signed transaction.
AbstractSigner.signTransaction
Parameter | Type | Description |
---|---|---|
domain | TypedDataDomain | The domain of the typed data. |
types | Record <string , TypedDataField []> | The types of the typed data. |
_value | Record <string , any > | The value of the typed data. |
Promise
<string
>
The signed typed data.
AbstractSigner.signTypedData
Parameter | Type | Description |
---|---|---|
password | string | The password to unlock the account. |
Promise
<boolean
>
True if the account is unlocked, false otherwise.