Redeem Funds
How to Redeem Funds From a Gig Contract
It is important to note, once the gigâs 14-day lock period has passed, you can use the redeem funds to get the coins back. Unfortunately, this function before 14 days, in Bitcoin blocks, will not work.
1. Open the gig page Go to the gig you created: https://www.zeroauthoritydao.com/gigs/ef4aeba7-444f-4a46-91f3-20c247342292
2. Get the Stacks transaction On the gig page, copy the Stacks transaction associated with the gig creation.
3. Open the transaction in the explorer Paste that transaction into: https://explorer.hiro.so (or use the direct link if you already have one) Example: https://explorer.hiro.so/txid/71c78c7677e2de81e8f07056afdfcc645014dcd63a636552cf0c6c828a151d3b?chain=mainnet&api=https://api.mainnet.hiro.so
4. Get the contract ID On the explorer page, locate the gig contract. It should look like: SP2GW18TVQR75W1VT53HYGBRGKFRV5BFYNAF5SS5J.ZADAO-V2a-gigs
5. Open Stacks Sandbox Go to the Stacks Sandbox.
6. Connect your Stacks wallet Make sure you are connecting with the same wallet that originally created the gig. If you use a different wallet, you wonât be able to redeem funds.
7. Under âCall a contractâ Paste the gig contract ID: SP2GW18TVQR75W1VT53HYGBRGKFRV5BFYNAF5SS5J.ZADAO-V2a-gigs
8. Click âGet contractâ
9. Choose the function
Select the public function redeem-back.
10. Enable Allow Mode Turn on "Allow Mode" so the contract can move tokens.
11. Enter the inputs You need two things: ⢠gig id ⢠pay on (the token ID used for payment)
How to find them:
Finding the gig id: On the explorer page for the original transaction, open the Events tab. Look for the event where the gig was created and copy the gig id.
Finding the âpay onâ token ID:
In the same Events tab, look for the currency field.
Example:
currency: 'SP32AEEF6WW5Y0NMJ1S8SBSZDAY8R5J32NBZFPKKZ.wstx'
This is the token contract ID you must enter for pay on.
12. Submit the transaction After submitting, your funds will automatically return to you once the gigâs 14-day lock period has passed.
Last updated