{"slug":"saylorinnovations-com-api-evm-gas-cost-3b7ac7","title":"Transaction fee in native token and USD for a transfer, swap, mint, approve or c","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/evm/gas-cost","category":"market","description":"Transaction fee in native token and USD for a transfer, swap, mint, approve or custom gas amount on any EVM chain, from base fee, tip and token price.","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"base_fee_gwei":"12","native_price_usd":"3500","priority_fee_gwei":"1.5"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"base_fee_gwei":{"description":"current base fee in gwei","type":"string"},"native_price_usd":{"description":"price of the chain native token","type":"string"},"priority_fee_gwei":{"description":"optional tip, default 1","type":"string"}},"required":["base_fee_gwei","native_price_usd"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"base_fee_gwei":{"description":"Base fee used","type":"number"},"cost_if_gas_doubles_for_swap_usd":{"description":"USD cost of a swap if the gas price doubled","type":"number"},"custom":{"description":"Cost of your own gas amount, or null","type":["object","null"]},"native_price_usd":{"description":"Native token price used","type":"number"},"note":{"description":"Plain-language caveat about how to read and use the result","type":"string"},"priority_fee_gwei":{"description":"Priority fee used","type":"number"},"source":{"description":"Where the data or formula comes from","type":"string"},"total_gas_price_gwei":{"description":"Base fee plus tip","type":"number"},"typical_operations":{"description":"Cost of common operations at this gas price","items":{"properties":{"gas_units":{"description":"Typical gas used","type":["number","null"]},"native_cost":{"description":"Fee in the native token","type":["number","null"]},"operation":{"description":"Operation name","type":["string","null"]},"usd_cost":{"description":"Fee in USD","type":["number","null"]}},"type":"object"},"type":"array"}},"required":["total_gas_price_gwei","typical_operations"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Transaction fee in native token and USD for a transfer, swap, mint, approve or custom gas amount on any EVM chain, from base fee, tip and token price.","last_updated":"2026-10-20T14:47:00.201Z","schemes":["exact"]}