{"tool":"crypto-fees","title":"Network Fees","what":"What a transaction costs right now: Solana priority fee levels (low to very high, micro-lamports per compute unit) and the USD cost of a typical transfer and swap, plus Base gas price, base fee and the USD cost of an ERC-20 transfer. Use it to set fees that land without overpaying.","endpoint":"https://yruz.one/api/crypto/fees","methods":["GET with query parameters","POST with a JSON body (same fields)"],"price":{"model":"fixed","usdc":"0.002"},"params":[{"name":"account","required":false,"description":"optional Solana program or account to estimate for (default: Jupiter router)","example":null}],"valid_request":{"get":"https://yruz.one/api/crypto/fees","post":{"url":"https://yruz.one/api/crypto/fees","body":{}}},"how_to_pay":["1. Send the request without payment: the answer is HTTP 402 with the exact price (x402 v2 in the PAYMENT-REQUIRED header, x402 v1 in the JSON body).","2. Sign one offer of \"accepts\" with an x402 client (USDC on Base eip155:8453 or on Solana mainnet; the facilitator pays the network fee).","3. Resend the identical request (same method, parameters and body) with PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1).","4. The answer carries the receipt in PAYMENT-RESPONSE. Any changed parameter needs a new 402."],"response_shape":{"product":"string","result":{"solana":{"account":"string","base_fee_lamports":"number","priority_levels":{"min":{"micro_lamports_per_cu":"number","transfer_cost":{"…":"…"},"swap_cost":{"…":"…"}},"low":{"micro_lamports_per_cu":"number","transfer_cost":{"…":"…"},"swap_cost":{"…":"…"}},"medium":{"micro_lamports_per_cu":"number","transfer_cost":{"…":"…"},"swap_cost":{"…":"…"}},"high":{"micro_lamports_per_cu":"number","transfer_cost":{"…":"…"},"swap_cost":{"…":"…"}},"veryHigh":{"micro_lamports_per_cu":"number","transfer_cost":{"…":"…"},"swap_cost":{"…":"…"}}},"recommended":"string","sol_usd":"number","note":"string"},"base":{"network":"string","gas_price_gwei":"number","base_fee_gwei":"number","eth_usd":"number","erc20_transfer_cost":{"gas":"number","eth":"number","usd":"number"},"note":"string"},"as_of":"string","max_age_seconds":"number","duration_ms":"number"},"payment":{"payment_id":"string","transaction":"string"}},"refusals":{"400":"invalid input: the message names the field and the expected format; nothing is charged","402":"payment required, or the payment was refused (reason in \"error\"); nothing is charged","403/404":"not your item, or the asked item does not exist; nothing is charged","409/422":"not allowed right now (state or destination safety); nothing is charged","503":"a source or the payment rail is unavailable; nothing is charged, retry after Retry-After"},"mcp":{"server":"https://yruz.one/mcp/x402","payment":"params._meta[\"x402/payment\"] = PaymentPayload"},"related":{"tools":[{"tool":"crypto-price","url":"https://yruz.one/api/crypto/price","why":"live prices","usd":"0.002","how":"https://yruz.one/api/instructions?tool=crypto-price"},{"tool":"wallet","url":"https://yruz.one/api/wallet","why":"USDC and gas balance of an address","usd":"0.002","how":"https://yruz.one/api/instructions?tool=wallet"}],"more_x402_apis":{"402index":"https://402index.io","x402scan":"https://www.x402scan.com","agent402":"https://agent402.tools","x402_protocol":"https://www.x402.org"},"all_yruz_tools":"https://yruz.one/api/instructions"}}