Bitcoin Transfers

The Create Transaction endpoint supports Bitcoin transfers to any Bitcoin address. Transfers to Legacy, Native Segwit, Nested Segwit, and Taproot addresses are all supported.

Each Fordefi vault can have multiple Bitcoin addresses. For outgoing transfers, Fordefi automatically selects inputs from the set of unspent outputs across all of the vault's addresses. The change output is sent back to the vault's default address.

The fee for the transaction can either be automatically selected by Fordefi, based on a low, medium, or high priority, or it can be specified by the user in satoshis per byte.

Following is an example request body for a Bitcoin transfer. The general details of creating the request appear here.

{
    "vault_id": "3fd3ed32-64e5-47ef-b822-65493d30bf3f",
    "signer_type": "api_signer",
    "type": "utxo_transaction",
    "details": {
        "type": "utxo_transfer",
        "outputs": [
            {
                "to": {
                    "type": "address",
                    "address": "tb1pg0caktdsjl42v3q43nrsk26xvmh8je9ke8kucsnau6ymsnj42dhqj7swcd"
                },
                "value": "500"
            }
        ],
        "fee_per_byte": {
            "type": "priority",
            "priority_level": "high"
        }
    }
}