wallets

Deposit via Lightning

Add funds to a Bitcoin account using the Lightning Network

post/business/account/lightning/topup

Request

  • Base URL
    https://www.sandbox.striga.com/api/v1/wallets
  • URL
    https://www.sandbox.striga.com/api/v1/wallets/business/account/lightning/topup
  • Auth
    API key in header api-key and API key in header Authorization

Request body

businessIdstring uuid required

Unique Id of the business who is sending this transactions

accountIdstring required

The Id of the account to credit

amountstring required

Amount in satoshis

memostring

An optional memo

ttlstring

LN Invoice expiry in minutes (Between 10 and 1440)

provider'OPENNODE' | 'LIGHTSPARK'

Lightning provider to use for the top-up

proposedRatestring

An optional proposed BTC/EUR rate to honor for the standing order that pays out this top-up. Validated against the current market rate.

fillOrKillAtProposedRateboolean

When true, the standing order payout is only executed if the proposedRate can be honored, otherwise it is killed.

counterpartyIdstring uuid

Declared travel-rule counterparty for this Lightning deposit. Required when travel rule is enabled for the application.

Example request

{
  "accountId": "d3ec681f6f84f404554c44bba797315b",
  "amount": "500",
  "memo": "extend methodologies clicks-and-mortar"
}

Response

success

idstring required
descriptionstring required
amountstring required
invoicestring required
expiryinteger required

Example response

{
  "id": "85c0f778-388d-4828-9066-8de60eb8c035",
  "description": "extend methodologies clicks-and-mortar",
  "amount": "500",
  "invoice": "lntb5u1p30y64npp5w5lp9v25yz4trdc204l2he262jywaehymnqx0mtel0l6lk3r8m9qdpav4u8getwvssx6et5dphkgmmvdankjetnyp3kc6trddej6ctwvskk6mmjw3shycqzpgxqzjhsp5cnstd43825ttacu682m39d6frdttz7wkucx3lr8je9p2yhtqtvvs9qyyssqr5m7s4x8a9efvumqcynj30jaf05pkd0d7f0a8jplgqqyvg7um8lxqp6y63m7mmvc2qvx93lr0tvvyjarmpapcnfcqaz23as5q8r99sspguqp9z",
  "expiry": 1660054794
}

Changes

No recorded changes to this operation across all 1 revision of this API.