Quick Start Guide
This guide will help you quickly set up and start using Shield for submitting private Bitcoin transactions.
Prerequisites
Before using Shield, you should have:
Basic understanding of Bitcoin transactions
The ability to create and sign raw Bitcoin transactions
A tool or library capable of making HTTP requests (curl, request, axios, etc.)
Quick Start
1. Get Shield Fee Information
First, query Shield to get the current payment address and fee rates:
You'll receive a response like:
2. Create a Transaction with Shield Fee
When creating your Bitcoin transaction, add an output that pays the Shield service:
Choose a fee tier from the response above based on your confirmation needs. The
estimated_hashrate
represents an estimate of the cumulative % hashrate of the network's hashrate available at a given fee, and the corresponding fee rate (in sats/vbyte)Create an additional transaction output for Rebar (the value doesn't matter yet).
Calculate the total fee (including the new transaction output):
Transaction Size (vbytes) × Fee Rate (sats/vbyte)
Modify the output to your transaction to pay this amount to the Shield payment address
3. Submit the Transaction
Submit your signed transaction to Shield:
On success, you'll receive the transaction ID:
Code Examples
JavaScript (Node.js with axios)
Next Steps
Read the Developer Guide for more detailed instructions
Check the API Reference for comprehensive API documentation
See the FAQ for answers to common questions
Last updated