SecretNetworkClient Members
The SecretNetworkClient type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
SecretNetworkClient(String, String, Wallet) |
Initializes a new instance of the SecretNetworkClient class.
|
![]() |
SecretNetworkClient(CreateClientOptions, GrpcChannelOptions, Interceptor) |
Initializes a new instance of the SecretNetworkClient class.
|
Methods
Name | Description | |
---|---|---|
![]() ![]() |
AddressToBytes |
Converts the address to bytes.
|
![]() ![]() |
Base64PubkeyToAddress |
Converts a base64 encoded PubKey to an address.
|
![]() ![]() |
BytesToAddress |
Get the address from bytes (bech32).
|
![]() |
GetEncryptionUtils |
Gets the EncryptionUtils and uses the stored tx encryption key / seed (from which the encryption key for encrypting the transactions is generated) from the wallet or generates a new one (Keplr style) and stores it.
If the EncryptionUtils were passed in the CreateClientOptions, they will be used.
|
![]() |
GetSignerData |
Gets the signer data for the given wallet address.
|
![]() ![]() |
GetTxEncryptionSeed |
Gets the stored tx encryption key / seed (from which the encryption key for encrypting the transactions is generated) or generates a new one (Keplr style) and stores it.
|
![]() |
PrepareAndSign |
Prepares the and signs the specified messages.
|
![]() ![]() |
PubkeyToAddress |
Converts a PubKey to an address.
|
![]() |
Sign |
Signs the specified messages.
|
![]() |
SignAmino |
Signs the transaction (amino).
|
![]() |
SignDirect |
Signs the transaction (direct).
|
Properties
Name | Description | |
---|---|---|
![]() |
AlwaysSimulateTransactions |
WARNING: On mainnet it's recommended to not simulate every transaction as this can burden your node provider.
Instead, use this while testing to determine the gas limit for each of your app's transactions (use TxOptions.GasLimit), then in production use hard-coded.
|
![]() |
ChainId |
The chain-id is used in encryption code and when signing txs.
|
![]() |
EncryptionSeed |
Passing `encryptionSeed` will allow tx decryption at a later time. Ignored if `encryptionUtils` is supplied.
|
![]() |
GasEstimationMultiplier |
Gas estimation is known to be a bit off, so you might need to adjust it a bit before broadcasting (default is 1.1 / 10%).
|
![]() |
GrpcWebUrl |
A gRPC-web url, by default on port 9091
|
![]() |
Permit |
A (amino) signer. for signing permits (needs an attached wallet).
|
![]() |
Query |
Access to all query types.
|
![]() |
TransactionApprovalCallback |
Transaction approval callback for a user approval of an transaction.
|
![]() |
Tx |
A signer client (= with wallet) can broadcast transactions.
Tx gives access to all transaction types.
|
![]() |
Wallet |
A wallet for signing transactions and permits. When `wallet` is supplied, `walletAddress` and `chainId` must be supplied too.
|
![]() |
WalletAddress |
WalletAddress is the specific account address in the wallet that is permitted to sign transactions and permits.
If no wallet is attached the `CreateClientOptions.WalletAddress` is returned.
|