LI.FI Intents supports Bitcoin orders. Filling Bitcoin orders is more complex than filling EVM orders. If you are interested in filling Bitcoin orders, reach out and we will assist you.
orderDto.order.outputs[].token
field. If the token indicates Bitcoin, ensure the following conditions are met:
0x000000000000000000000000BC0000000000000000000000000000000000
.
The 13th byte is 0xBC
.
0x00
and 0x01
represent 1 confirmation.0x02
represents 2 confirmations.0x03
represents 3 confirmations, and so on.uint8
.
orderDto.order.outputs[].recipient
) will contain a relevant destination hash or witness, not the address itself. This value must be used along with the address version identifier – the 32nd byte of the token – to decode the address.
Version | Name | Encoding Scheme | Prefix | Hash Length |
---|---|---|---|---|
0 | Unknown | Ignore | ||
1 | P2PKH | Base58Check(00+PKH) | 1* | 20 |
2 | P2SH | Base58Check(05+SH) | 3* | 20 |
3 | P2WPKH | Bech32 | bc1q** | 20 |
4 | P2WSH | Bech32 | bc1q** | 32 |
5 | P2TR | Bech32m | bc1p** | 32 |