That’s SO De-Fi!
How to Use Time Pays Me Without The Front-End on PulseChain
Running the code yourself via scan.PulseChain.com instead of using TimePays.me
First, keep personal notes of which tokens you locked in which of your addresses, due dates, etc. Usually the block explorer would tell you what you have in the vault, but that’s not exactly relying on yourself — which is the point of crypto.
Most people might use the TimePays.me front-end, but there’s no guarantee it will always be available. It’s a miracle when anything in crypto works.
Example: Unlocking Tokens
The example covered in this article is unlocking tokens. You can use many of the functions of TimePays.me without the front-end, but we’ll focus on just this one — and what you learn might help you do even more. For example, your learning might transfer to Ethereum, where you’d use Etherscan.io instead of scan.PulseChain.com.
Part 0: Save These Instructions In Your Own Notes
You might print this out, AND save to a digital notepad. Never store your seed phrase on your computer in a notepad/text file/etc, and never share your seed phrase with anyone ever. Here we are only dealing with public addresses, vault address and token addresses.
Part 1: Get your vault address.
Normally you can just grab this from the TimePays.me front-end. But if that’s not available, use the instructions in this part. Part 2, below, covers ending a lock without the front-end.
- Go to: https://scan.pulsechain.com/, click on the IPFS link (mypinata).
- Enter the TimeCapsuleFactory Contract Address (same for everyone): 0x3e9a668D590B92256bb8D926b147f310791b2B1E
- Click “Contract” tab and “Read contract” tab.
- Under “1. capsuleAddressOf” enter your public wallet address starting in 0x…, click “Query” and copy the resulting address — your vault address. Add this to your notes.
5. Take your vault address and enter it in the top search bar for scan.PulseChain.com.
6. Now within the vault address we can see the tokens in the drop-down menu of the “Tokens” menu. In your notes, add the token address of anything you want to end.
Part 2: Run Code In Your Vault Address
- Take your vault address and enter it in the top search bar for scan.PulseChain.com.
- Click “Contract” tab and “Write proxy” tab. Connect Wallet (button below write proxy).
- In function “7. initiateWithdrawal” enter the token address of the token you’re trying to get the drip or ended lock from.
- Enter a value for “_lockIndex”. If you only have 1 lock, enter 0. If you don’t know how many, maybe you’d guess. If a lock is cleared out, the previous lock moves down a number. So if I have two locks for the same token, the LockIndex for the first is 0 and the second is 1, but when I’ve withdrawn everything from the first, then the second becomes Index = 0. If I drip from index 0 then I can drip from index 1 and 2 and however many locks I have. The index number of each lock only drops if a lock is completely emptied (including the following steps) where the tokens go from the vault address back to the public address.
- Now you hit “Write” for each drip/lock you want to take, and confirm in your wallet, then make sure it confirms. If you didn’t have that token locked or something else goes wrong, the transaction would fail.
- Now you wait 7 days plus 1 minute… so I’d record that to my notes.
- Now you came back 7 days later and follow all of these steps under Part 2, except you choose “12. sendWithdrawal” in step 3 instead of “7. initiateWithdrawal”. Press “Write”. Once confirmed, your locked tokens are now in your public address that owns the vault, and those tokens are in an unlocked state. Congratulations.
- Now you can initiate another withdrawal for each drip you have, or wait longer. There’s no penalty for being late.
Other situations: You can see the total balance of all your locks by looking in the public address. If you sent a token directly to the vault without creating a lock, you would see a balance but there would be no lock to initiate withdrawal on. In that case you would have to use function “4. createHardLock” to start a lock (can be 1 minute only), then you can follow the steps above to initiateWithdrawal, wait 7 days, then sendWithdrawal.
In the code (viewable on “code” tab in scan.PulseChain.com for your vault address) there’s labels for what goes in each contract function field. For example, lockedAmount is in the token’s base units, so for PLSX because it has 18 decimals, 1 PLSX would be 1000000000000000000.
I hope this guide is helpful for your self-reliance.
Anything locked in your TimePaysMe is your responsibility. Please stake wisely my friends.