v1

latestOpenAPI 3.0.2raw.githubusercontent.com2025-10-15392455.7 KB
Session

Approve Spending

Approve the contract to spend MOR tokens on your behalf.

Connects to the proxy-router's /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.

post/api/v1/session/approve

Query parameters

amountinteger required

The amount to approve, consider bid price * duration for sessions

The amount to approve, consider bid price * duration for sessions

Response

Successful Response

{"stackTrail":"paths:/api/v1/session/approve:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}