/blockchain/approve endpoint. For creating sessions, approve enough tokens by calculating: bid_price * session_duration. Uses the DIAMOND_CONTRACT_ADDRESS environment variable as the spender contract address.
Headers
API key in format: 
Bearer sk-xxxxxxQuery Parameters
The amount to approve. Consider bid price × duration for sessions.
Response
Whether the approval was successful
Blockchain transaction hash
Approved amount
Calculating approval amount:
- Get the bid price from 
/api/v1/models/ratedbids?model_id=0x... - Decide on session duration (e.g., 3600 seconds)
 - Calculate: 
amount = bid_price * session_duration - Add a buffer for safety: 
amount = amount * 1.1 
This operation requires you to have a private key registered. Use the 
/api/v1/auth/private-key endpoint to store your encrypted private key first.
