Overview

Arkade makes sending Arkade payments simple and efficient. The SDK automatically determines whether to use on-chain or off-chain (Ark) transactions based on the destination address, optimizing for speed and cost.

1

Prepare Payment Details

Gather the recipient’s address and the amount you want to send in satoshis.

2

Call sendBitcoin

Use the sendBitcoin method with the recipient’s address and amount.

3

Automatic Routing

Arkade automatically determines whether to use on-chain or off-chain transactions based on the address type.

4

Payment Confirmation

Receive a transaction ID that can be used to track the payment status.

Sending Bitcoin in Arkade

The sendBitcoin is used to send an Arkade payment. It automatically detects the address type and routes the payment accordingly.

When sending to on-chain Bitcoin addresses, standard Bitcoin network fees will apply. Sending to Ark addresses (starting with ark1 or tark1) will have near-zero fees.

// Send bitcoin (automatically chooses on-chain or off-chain based on the address)
const txid = await wallet.sendBitcoin({
  address: 'tark12ld59yglpjkfezzhrr9cpe2ws4n87vs7rzv8234as3ctk9hly0r8w495snjdkk6fnwpwznlg56sutpy55n8a7nmkhumm4g7fckx9k4qrjc22t',
  amount: 50000,  // in satoshis
})

console.log('Transaction ID:', txid)

Sending Bitcoin in Lightning

For Lightning Network payments, Arkade provides seamless integration through submarine swaps. This allows you to send payments from your Arkade wallet to any Lightning invoice.

Lightning Swaps

Learn how to integrate Lightning Network with Arkade using submarine swaps to send and receive Lightning payments.

Next Steps