Download OpenAPI specification:Download
This API allows you to authenticate with the UMA server to take actions on a user's wallet. It's the exposed communication layer between the NWC server and the main UMA server.
amount required | integer <int64> > 0 The amount to invoice in msats. |
description | string A memo to attach to the invoice. |
description_hash | string A hash of a longer description field. |
expiry | integer > 0 The number of seconds until the invoice expires. |
{- "amount": 1000,
- "description": "Payment for services rendered.",
- "description_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "expiry": 3600
}
{- "type": "incoming",
- "invoice": "lnbcrt1pjrsa37pp50geu5vxkzn4ddc4hmfkz9x308tw9lrrqtktz2hpm0rccjyhcyp5qdqh2d68yetpd45kueeqv3jk6mccqzpgxq9z0rgqsp5ge2rdw0tzvakxslmtvfmqf2fr7eucg9ughps5vdvp6fm2utk20rs9q8pqqqssqjs3k4nzrzg2nu9slu9c3srv2ae8v69ge097q9seukyw2nger8arj93m6erz8u657hfdzztfmc55wjjm9k337krl00fyw6s9nnwaafaspcqp2uv",
- "description": "Pay for pizza.",
- "description_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "payment_hash": "7332c2671019264cf0e9b8626bde20c9c3979799c570a276fb9512e22aef1f08",
- "amount": 1000,
- "fees_paid": 1000,
- "created_at": 1683148800,
- "expires_at": 1683148800,
- "settled_at": 1683148800,
- "metadata": { }
}
invoice required | string The bolt11 invoice to pay. |
amount | integer or null <int64> > 0 The amount to pay for a 0-amount invoice. |
budget_currency_code | string The code of the currency the sender used to set budget. Optional if the budget is set in SAT. |
{- "invoice": "lntb1u1pw0k7jw",
- "amount": 1000,
- "budget_currency_code": "USD"
}
{- "preimage": "abcd1234",
- "total_budget_currency_amount": 1000
}
payment_hash required | string Example: f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 The payment hash of the invoice. |
{- "type": "incoming",
- "invoice": "lnbcrt1pjrsa37pp50geu5vxkzn4ddc4hmfkz9x308tw9lrrqtktz2hpm0rccjyhcyp5qdqh2d68yetpd45kueeqv3jk6mccqzpgxq9z0rgqsp5ge2rdw0tzvakxslmtvfmqf2fr7eucg9ughps5vdvp6fm2utk20rs9q8pqqqssqjs3k4nzrzg2nu9slu9c3srv2ae8v69ge097q9seukyw2nger8arj93m6erz8u657hfdzztfmc55wjjm9k337krl00fyw6s9nnwaafaspcqp2uv",
- "description": "Pay for pizza.",
- "description_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "payment_hash": "7332c2671019264cf0e9b8626bde20c9c3979799c570a276fb9512e22aef1f08",
- "amount": 1000,
- "fees_paid": 1000,
- "created_at": 1683148800,
- "expires_at": 1683148800,
- "settled_at": 1683148800,
- "metadata": { }
}
currency_code | string Example: currency_code=USD The currency code of the balance. Assumed to be in msats if not provided. |
{- "balance": 1000,
- "currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}
}
receiver_address required | string Example: $alice@vasp.net The receiver's LUD16 address. |
base_sending_currency_code | string Example: base_sending_currency_code=USD The currency code of the sender's balance. Assumed to be in msats if not provided. This is used to calculate the multiplier for the receiver's currencies. |
{- "currencies": [
- {
- "currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "multiplier": 100000000,
- "min": 1,
- "max": 1000000
}
]
}
sending_currency_code required | string Example: sending_currency_code=MXN The currency code being sent from the sender's wallet. |
receiving_currency_code required | string Example: receiving_currency_code=USD The currency code of the currency that the receiver will receive. |
locked_currency_amount required | integer <int64> > 0 Example: locked_currency_amount=1000 The amount to send/receive in the smallest unit of the locked currency (eg. cents). See |
locked_currency_side required | string (LockedCurrencySide) Enum: "sending" "receiving" The side of the quote which should be locked and specified in the |
receiver_address required | string Example: receiver_address=$alice@vasp.net The LUD16 address to send the payment to. |
{- "sending_currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "receiving_currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "payment_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "expires_at": 1683148800,
- "multiplier": 123,
- "fees": 10,
- "total_sending_amount": 123010,
- "total_receiving_amount": 1000,
- "created_at": 1683148800
}
payment_hash required | string Example: f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 The payment hash of the quote to execute. |
budget_currency_code | string The code of the currency the sender used to set budget. Optional if it is the same as |
{- "budget_currency_code": "USD"
}
{- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "total_budget_currency_amount": 1000
}
receiver_address required | string The LUD16 address to pay. |
sending_currency_code required | string The code of the currency being sent from the sender's wallet. |
sending_currency_amount required | integer <int64> > 0 The amount to send in the smallest unit of the sending currency (eg. cents). |
receiving_currency_code | string The code of the currency being received by the receiver. If not provided, the receiver's default currency will be used. |
budget_currency_code | string The code of the currency the sender used to set budget. Optional if it is the same as |
{- "receiver_address": "$alice@vasp.net",
- "sending_currency_code": "MXN",
- "sending_currency_amount": 1000,
- "receiving_currency_code": "USD",
- "budget_currency_code": "USD"
}
{- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "quote": {
- "sending_currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "receiving_currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "payment_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "expires_at": 1683148800,
- "multiplier": 123,
- "fees": 10,
- "total_sending_amount": 123010,
- "total_receiving_amount": 1000,
- "created_at": 1683148800
}, - "total_budget_currency_amount": 1000
}
amount required | integer <int64> > 0 The amount to pay in msats. |
pubkey required | string The public key of the receiver's node. |
preimage | string Preimage of the payment. |
Array of objects The tlv records. | |
budget_currency_code | string The code of the currency the sender used to set budget. Optional if the budget is set to SAT. |
{- "amount": 10000,
- "pubkey": "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
- "preimage": 1000,
- "tlv_records": [
- {
- "type": 5482373484,
- "value": "0123456789abcdef"
}
], - "budget_currency_code": "USD"
}
{- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "total_budget_currency_amount": 1000
}
{- "alias": "Alice's Wallet",
- "color": "#FF0000",
- "pubkey": "abcd1234",
- "network": "testnet",
- "block_height": 1000,
- "block_hash": "abcd1234",
- "methods": [
- "make_invoice"
], - "lud16": "$alice@vasp.net",
- "currencies": [
- {
- "currency": {
- "code": "USD",
- "symbol": "$",
- "name": "United States Dollar",
- "decimals": 2
}, - "multiplier": 100000000,
- "min": 1,
- "max": 1000000
}
]
}
from | integer <int64> Example: from=1683148800 Starting timestamp in seconds since epoch (inclusive). |
until | integer <int64> Example: until=1683148800 Ending timestamp in seconds since epoch (inclusive). |
limit | integer > 0 Example: limit=10 Maximum number of transactions to return. |
offset | integer >= 0 Example: offset=0 Offset of the first transaction to return. |
unpaid | boolean Example: unpaid=false Whether to include unpaid invoices. |
type | string (TransactionType) Enum: "incoming" "outgoing" Type of transactions to return: "incoming" for invoices, "outgoing" for payments, undefined for both. |
{- "transactions": [
- {
- "type": "incoming",
- "invoice": "lnbcrt1pjrsa37pp50geu5vxkzn4ddc4hmfkz9x308tw9lrrqtktz2hpm0rccjyhcyp5qdqh2d68yetpd45kueeqv3jk6mccqzpgxq9z0rgqsp5ge2rdw0tzvakxslmtvfmqf2fr7eucg9ughps5vdvp6fm2utk20rs9q8pqqqssqjs3k4nzrzg2nu9slu9c3srv2ae8v69ge097q9seukyw2nger8arj93m6erz8u657hfdzztfmc55wjjm9k337krl00fyw6s9nnwaafaspcqp2uv",
- "description": "Pay for pizza.",
- "description_hash": "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
- "preimage": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
- "payment_hash": "7332c2671019264cf0e9b8626bde20c9c3979799c570a276fb9512e22aef1f08",
- "amount": 1000,
- "fees_paid": 1000,
- "created_at": 1683148800,
- "expires_at": 1683148800,
- "settled_at": 1683148800,
- "metadata": { }
}
]
}
sending_currency_code required | string Example: sending_currency_code=SAT The code of the currency that will be sent from the sender's wallet. |
sending_currency_amount required | integer <int64> > 0 Example: sending_currency_amount=1000 The amount to send in the smallest unit of the sending currency (eg. cents). |
budget_currency_code required | string Example: budget_currency_code=USD The code of the currency the sender used to set budget. |
{- "estimated_budget_currency_amount": 1000
}