Any string that you can recognize your wallet type. For example: PrivateKey, Phantom, Sollet, ...
Call the disconnect
method from provider
returned by getProvider
Return wallet address
Wallet address (base58)
Sign the input transactions and return signed transactions
The signed transactions
Sign a message and return a signed messaged
String needs to be signed
Sign the input transaction and return signed transaction
The transaction that needs to be signed
The signed transaction
Verify a singed message
Signature (signedMessage.signature
)
The original message (or signedMessage.message
)
Optional. The address that signed the message. If not provided, the address
will be fetched by this.getAddress()
.
Generated using TypeDoc
All the library in sen-js have been leveraged by wallet instance for getting wallet address, signing transaction for example.\
The last parameter in the following example is
wallet
that respectsWalletInstance
. By thewallet
, thetransfer
method can sign or read necessary wallet info for the transaction.Following the interface, you can create a wallet instance that work with the libraries seamlessly.
We have already written multiple wallet that you can refer as examples