> Markdown version of [/videos/28-miner-fee-calculation-and-merchant-api-new-tools-for-the-bitcoin-sv-network?t=174](https://www.wearedevelopers.com/videos/28-miner-fee-calculation-and-merchant-api-new-tools-for-the-bitcoin-sv-network?t=174). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Miner fee calculation and merchant API - new tools for the Bitcoin SV network Why scan entire blockchain blocks for payments when you can communicate directly with miners? Learn how the Merchant API unlocks scalable, peer-to-peer transaction settlement on Bitcoin SV. - **Speakers:** Jad Wahab - **Event:** WeAreDevelopers LIVE - **Published:** July 28, 2020 - **Duration:** 52:11 - **URL:** https://www.wearedevelopers.com/videos/28-miner-fee-calculation-and-merchant-api-new-tools-for-the-bitcoin-sv-network ## Summary The transition of Bitcoin SV toward massive scaling requires reevaluating how transactions propagate and settle. Legacy models, where merchants scan entire network blocks for payments, are computationally unscalable. Instead, true peer-to-peer (P2P) interactions offload settlement to the transaction receiver. The Merchant API (mAPI) facilitates this by establishing a direct interface between merchants and transaction processors (miners), allowing receivers to negotiate fees, submit transactions securely, and confirm settlement without relying on a monolithic node structure. Designed as a stepping stone toward a microservices-based Teranode architecture, mAPI effectively modularizes the node fee system. Utilizing JSON Envelopes for deterministic ECDSA capabilities, transaction processors can securely sign responses and verify their Miner ID. Because fee calculations rely on integer math rather than floating-point logic, merchants can specify exact transaction costs split into varying tiers—such as lower rates for pruning-eligible OP_RETURN data. The mAPI endpoints handle three critical operations: discovering base fee quotes, directly posting transactions, and querying real-time status updates. Shifting away from viewing miners as mere block-creators, mAPI positions them as active, service-oriented transaction processors. This opens the door for custom node services like instantaneous double-spend alerts, long-term nLockTime data storage, and structured volumetric fee discounts. Recognizing that "security is always a matter of risk and cost," merchants are no longer required to over-engineer node verification; instant notifications of competing network transactions provide sufficient fraud deterrence for most commerce. Paired with upcoming decentralized standards like SPV Merkle inclusion proofs, offline P2P transactions become highly secure, ensuring seamless micro-payments regardless of environmental latency or network dropouts. **Keywords:** merchant api, bitcoin sv scaling, p2p transaction settlement, double spend fraud detection, json envelopes, ecdsa signing, miner id verification, deterministic fee calculation, spv merkle proofs, teranode microservices, bitcoin node modularization, nlocktime data storage, op_return data fees, offline p2p transactions, transaction processor services ## Chapters 1. **Introduction to transaction fee limits and the merchant API** (00:17) — An overview of navigating transaction fee calculation and how the merchant API acts as an interface to blockchain nodes. 1. **Bitcoin scaling and the transition to peer-to-peer transactions** (02:54) — Rapid network growth necessitates shifting from legacy broadcast validation methods to direct peer-to-peer transaction settlements. 1. **Understanding double spending patterns and block network topology** (08:22) — Monitoring small world network connectivity among miners alters traditional perspectives on managing duplicate transaction threats. 1. **Navigating practical security trade-offs for merchant transactions** (14:46) — Effective merchant security relies on balancing access friction with rapid network double-spend notifications rather than absolute prevention. 1. **Practical limitations of theoretical double spend validation attacks** (20:05) — Substantial hardware investments and aligned economic incentives deter commercial transaction processors from participating in theoretical chain reorganization attacks. 1. **Extended node services for transaction security and verification** (24:53) — Providing modular node functionality enables enhanced consumer services like delayed lock times and cryptographic transaction inclusion proofs. 1. **Evolving infrastructure from standard miners to dedicated transaction processors** (29:29) — Diminishing block rewards drive operations to adopt microservice architectures centered entirely on consistent transaction fee revenue. 1. **Implementing merchant APIs and peer-to-peer payment data flows** (33:07) — Utilizing native network endpoints alongside standard payment request protocols simplifies peer discovery and automated settlement processes. 1. **Securing node responses with miner identity and JSON envelopes** (37:00) — Generating deterministic string payloads ensures network operators can validly sign complex data structures using standard cryptographic keys. 1. **Deterministic fee calculations and tiered transaction data pricing models** (41:27) — Establishing predictable transaction costs through standard integer math allows networks to price custom data storage independently from core transfers. 1. **Adopting the merchant API across various modern blockchain operators** (44:09) — Industry mining pools and wallet providers are deploying the new interface standard to facilitate customized wholesale transaction agreements. 1. **Addressing questions regarding secondary APIs and offline merchant security** (46:13) — Comparing direct node interfaces to traditional secondary query layers highlights reliable inclusion strategies for environments with significant internet latency. ## Related Moments - [Comparing peer-to-peer and legacy Bitcoin payment networks](https://www.wearedevelopers.com/videos/153-scaling-bitcoin-for-global-adoption) (from "Scaling Bitcoin for global adoption") - [Incentivizing blockchain infrastructure through high transaction volume](https://www.wearedevelopers.com/videos/20-bitcoin-sv-the-massively-scaled-blockchain-to-meet-developer-needs) (from "Bitcoin SV: The Massively Scaled Blockchain to Meet Developer Needs") - [Simplifying payment verification with standardized REST interfaces](https://www.wearedevelopers.com/videos/20-bitcoin-sv-the-massively-scaled-blockchain-to-meet-developer-needs) (from "Bitcoin SV: The Massively Scaled Blockchain to Meet Developer Needs") - [Simplifying complex marketplace transactions with financial application interfaces](https://www.wearedevelopers.com/videos/596-fintech-rebellion-how-developers-are-disrupting-the-future-of-commerce) (from "Fintech Rebellion: How Developers Are Disrupting the Future of Commerce") - [Establishing interconnected payment channels for cross-miner communication](https://www.wearedevelopers.com/videos/150-windtalker-and-dotid-for-the-dotwallet-sdk) (from "Windtalker and DotID for the DotWallet SDK ") - [Alternative payment rails and transaction simulation logic](https://www.wearedevelopers.com/videos/100063-200-ok-payment-settled-resource-delivered) (from "200 OK: Payment settled, resource delivered") ## Related Articles - [Build With Bitcoin SV](https://www.wearedevelopers.com/magazine/6-build-with-bitcoin-sv) - [From Hype to Code: Real Blockchain Use Cases for Developers](https://www.wearedevelopers.com/magazine/620-from-hype-to-code-real-blockchain-use-cases-for-developers) - [The CAMARA Project: How Telcos Collaborating Improves Developer Experience](https://www.wearedevelopers.com/magazine/671-the-camara-project-how-telcos-collaborating-improves-developer-experience) - [Walking Into The Era of Supply Chain Risks](https://www.wearedevelopers.com/magazine/106-walking-into-the-era-of-supply-chain-risks) ## Related Jobs - [Senior Backend Engineer, Blockchain (Smart Contracts)](https://www.wearedevelopers.com/jobs/ext/1940851-senior-backend-engineer-blockchain-smart-contracts) at **Bitpanda** - [Software Engineer](https://www.wearedevelopers.com/jobs/ext/1304791-software-engineer) at **Bitpanda** - [Principal Product Manager, Enterprise Commerce Platform](https://www.wearedevelopers.com/jobs/ext/1390094-principal-product-manager-enterprise-commerce-platform) at **Twilio** - [Backend Engineer, Python (Web3)](https://www.wearedevelopers.com/jobs/ext/1934515-backend-engineer-python-web3) at **Bitpanda** - [Senior Fullstack Engineer, Angular & Nestjs (Defi Wallet)](https://www.wearedevelopers.com/jobs/ext/1983681-senior-fullstack-engineer-angular-nestjs-defi-wallet) at **Bitpanda** - [iOS Engineer, Swift/SwiftUI/Combine (B2C Broker)](https://www.wearedevelopers.com/jobs/ext/1611832-ios-engineer-swift-swiftui-combine-b2c-broker) at **Bitpanda**