Threshold Network : Bridge | Address 0x5e4861a80b55f035d899f66772117f00fa0e8e7b | Etherscan
<aside> 🔑 Script that determines the most important information about DKG: https://tbtc-dkg.threshold.network/
https://tbtc-dkg.threshold.network/
</aside>
This script (https://tbtc-dkg.threshold.network/) returns relevant information depending on DKG state:
If no DKG is occurring right now, the script returns the following JSON:
{
"currentDateUTC":"2024-01-29T10:47:58.424Z",
"dkgState":"Idle",
"isDkgPossible":false,
"lastWalletCreationDateUTC":"2024-01-27T07:32:59.000Z",
"lastWalletBalanceSatoshi":"0",
"requestNewWalletCallParams":{
"txHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"txOutputIndex":0,
"txOutputValue":"0"
}
}
isDkgPossible field informs whether a new DKG can be triggered right now (wallet older than 2 weeks OR has more than 1 BTC of swept deposits).isDkgPossible is true, the three fields of the requestNewWalletCallParams property (txHash, txOutputIndex, txOutputValue) can be copy-pasted to call the public Bridge.requestNewWallet function using Etherscan and trigger a new DKG in order to create a wallet.lastWalletCreationDateUTC and lastWalletBalanceSatoshi parameters are just informative and should help to estimate how far we are from the next DKGIf DKG is taking place right now, the script returns a different JSON:
{
"currentDateUTC":"2024-01-29T10:47:58.424Z",
"dkgState":"In progress",
"hasDkgTimedOut":false,
}
hasDkgTimedOut property informs whether the DKG has timed out (i.e failed). If the value is true, the publicly callable WalletRegistry.notifyDkgTimeout function must be called to terminate the failed DKG and prepare the ground for a next attempt.If the DKG process completed and awaits 48h for approval, the JSON response is as follows:
{
"currentDateUTC":"2024-01-29T10:47:58.424Z",
"dkgState":"Awaiting approval",
}
This script should allow you to manage wallet creation on your own, without relying on the Keep team.