Overview

Learn & Start

Learn how ours works and implement in order to start accepting bitcoin.

API integration

Peach API is an easy and comfortable way of integrating with Peach Public Node. Our solution helps merchants to accept Bitcoin for their goods and services.

Creat access token

curl https://hub.lightningpeach.com/api/v2/auth/signin \
  --header "Content-Type: application/json" \
  --header "cache-control: no-cache" \
  --request POST \
  --data '{ "email": "merchant@merchant.com", "password": "xxxx" }'

Creat lightning payment

curl https://hub.lightningpeach.com/api/v2/payment/lightning \
  --header "Content-Type: application/json" \
  --header "cache-control: no-cache" \
  --header "Authorization: Bearer {access_token}"\
  --request POST \
  --data '{"amount": 20000,"expiry": 2000,"description": "Lightning payment"}'

Create on-chain payment

https://docs.lightningpeach.com/#on-chain-invoice-with-open-amount
curl https://hub.lightningpeach.com/api/v2/payment/on_chain_open_amount \
  --header "Content-Type: application/json" \
  --header "cache-control: no-cache" \
  --header "Authorization: Bearer {access_token}"\
  --request POST \
  --data '{"description": "invoice with open amount","ntfn_url": "http://10.2.2.233:9999"}'
Read more