Signeris responsible for
Signingrequests while the
Provideris responsible for communication between an application and a Hedera network, but is not required to communicate directly with a Hedera network. Note this means the
Providercan for instance communicate with some third party service which finally communicates with a Hedera network.
<accountId>, <privateKey>, <provider>
Constructs a local wallet from an account ID, private key, and provider.
Returns the ledger ID.
Returns the account ID associated with this signer.
Returns the account key.
Returns the full consensus network being used.
Returns the mirror node for the network.
Sign an arbitrary list of messages.
Returns the account balance.
Returns the account info.
Fetch the last transaction records for this account using
Returns the Hedera network.
<Wallet>.signTransaction <T extends Transaction>
Signs a transaction, returning the signed transaction
NOTE: This method is allowed to mutate the parameter being passed in so the returned transaction is not guaranteed to be a new instance of the transaction.
<Wallet>.checkTransaction<T extends Transaction>** (
Check whether all the required fields are set appropriately. Fields such as the transaction ID's account ID should either be
nullor be equal to the signer's account ID, and the node account IDs on the request should exist within the signer's network.
<Wallet>.populateTransaction<T extends Transaction>** (
Populate the requests with the required fields. The transaction ID should be constructed from the signer's account ID, and the node account IDs should be set using the signer's network.
<RequestT, ResponseT, OutputT>(request: Executable<RequestT, ResponseT, OutputT>
Responsible for serializing your request and sending it over the wire to be executed, and then deserializing the response into the appropriate type.
Note: This is a wrapper around the