| Method | Type | Description |
|---|---|---|
KeyList.withThreshold(<thresholdValue>) | int | The number of keys required to sign transactions to modify the account i.e. transfers, update, etc |
Keys
Create a threshold key
Create an N-of-M Hedera threshold key from Ed25519 or ECDSA keys with the SDK, so only the configured number of signatures must approve a transaction.
Create a key structure that requires the defined threshold value to sign. A threshold key can contain a Ed25519 or ECDSA (secp256k1_)_ key type. You can use either the public key or the private key to create the key structure. If the threshold requirement is not met when signing transactions, the network will return an “INVALID_SIGNATURE” error.
Sample Output: