You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Enter the operator (as a bytes32 account id), the asset ID, token address if assetId is `0` (ERC20), the amount to delegate, and any required blueprint parameters.
91
-
3. Click "transact" to nominate that account as your operator with a specified stake.
90
+
2. Enter the operator (as a bytes32 account ID), the asset ID, token address if assetId is `0` (ERC20), the amount to delegate.
91
+
3. Provide `blueprintSelection` as an array of blueprint IDs the operator should participate in.
92
+
4. Click "transact" to delegate your assets to the operator.
92
93
93
94
### 6. Schedule Unstake for Delegators
94
95
@@ -112,8 +113,8 @@ Below are example usages for some core methods on the multi-asset delegation int
2. Enter the address you want to inspect, assetId (0 for ERC20), and `tokenAddress` if needed.
116
-
3. Click "call" to see the total amount of assets held (deposited + delegated).
116
+
2. Enter the address you want to inspect, assetId (`0` for ERC20), and `tokenAddress` if needed.
117
+
3. Click "call" to see the total amount of assets held (deposited but not yet delegated).
117
118
118
119
### 10. Check Delegated Balance
119
120
@@ -123,6 +124,22 @@ Below are example usages for some core methods on the multi-asset delegation int
123
124
124
125
---
125
126
127
+
## Asset Types
128
+
129
+
-**Asset ID 0**: ERC20 tokens (requires token address)
130
+
-**Asset ID 1+**: Native or custom assets configured in the runtime
131
+
132
+
## Lock Multipliers
133
+
134
+
The `lockMultiplier` parameter in the deposit function allows users to lock their assets for longer periods in exchange for increased rewards:
135
+
136
+
-`0`: No lock (standard delegation)
137
+
- Higher values: Longer lock periods with proportionally higher reward multipliers
138
+
139
+
## Blueprint Selection
140
+
141
+
When delegating, the `blueprintSelection` parameter specifies which service blueprints the operator should run on your behalf. This enables targeted delegation to specific services or applications.
142
+
126
143
## More Information
127
144
128
145
For a complete list of methods and their parameters, refer to the Solidity interface above. This interface exposes all the critical multi-asset delegation functionality provided by Tangle's runtime, enabling you to manage deposits, schedule and execute withdrawals, delegate tokens, and unstake as needed—all through an Ethereum-compatible workflow. Make sure to handle asset IDs, token addresses, and amounts accurately to avoid transaction failures.
description: Earn free usage credits for AI tools by staking TNT tokens on Tangle.
4
+
---
5
+
6
+
# Credits
7
+
8
+
## What Are Credits?
9
+
10
+
Credits are a way for re-stakers on Tangle to earn credits on [ai.tangle.tools](https://ai.tangle.tools). When you stake TNT tokens, you automatically earn credits that can be used for AI services like text generation, image creation, and other AI tools.
11
+
12
+
## How to Earn Credits
13
+
14
+
Stake TNT/LstTNT tokens on Tangle and you'll automatically start earning credits. The more TNT you stake, the more credits you earn over time. You don't need to do anything special - just stake your tokens and credits accumulate automatically.
Credits accumulate based on your staked TNT amount. Higher stake amounts earn credits at a higher rate.
25
+
26
+
### Credit Expiry
27
+
28
+
Credits have an expiry period to encourage regular usage rather than hoarding. On Tangle Mainnet, you can accumulate credits for up to one week from your last claim. After one week, your accumulated credits reset to zero and you start earning fresh credits again.
29
+
30
+
This system encourages users to actively claim and use their credits rather than letting them pile up indefinitely.
31
+
32
+
### Claiming Process
33
+
34
+
To claim credits, you submit a transaction with your GitHub account as the off-chain ID. The system calculates how many credits you've earned based on your stake, verifies this amount, and emits an event that credits the specified amount to your GitHub account on ai.tangle.tools.
35
+
36
+
## Next Steps
37
+
38
+
-**[How to Claim Credits](/restake/credits/claiming)** - Learn how to claim your earned credits
39
+
-**[Credits Precompile](/restake/credits/precompile)** - Technical documentation for developers working with the credits system
description: Solidity interface for interacting with the Tangle Credits system
4
+
---
5
+
6
+
# Credits Precompile
7
+
8
+
The Credits precompile provides an Ethereum-compatible interface for interacting with the Tangle Credits system. This allows smart contracts and dApps to manage credits programmatically.
0 commit comments