| 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 a Hedera threshold key requiring N-of-M signatures from a KeyList to authorize transactions, supporting ED25519 and ECDSA keys for multisig flows.
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: