Module: NwcRuby::NIP47::Methods
- Defined in:
- lib/nwc_ruby/nip47/methods.rb
Overview
NIP-47 kinds and methods.
Constant Summary collapse
- KIND_INFO =
Event kinds.
13_194- KIND_REQUEST =
replaceable, plaintext capability list
23_194- KIND_RESPONSE =
client -> wallet, encrypted
23_195- KIND_NOTIFICATION_NIP04 =
wallet -> client, encrypted
23_196- KIND_NOTIFICATION_NIP44 =
wallet -> client, NIP-04 encrypted
23_197- PAY_INVOICE =
Methods (the payload ‘method` field). The info event advertises a space-separated subset of these.
'pay_invoice'- MULTI_PAY_INVOICE =
'multi_pay_invoice'- PAY_KEYSEND =
'pay_keysend'- MULTI_PAY_KEYSEND =
'multi_pay_keysend'- MAKE_INVOICE =
'make_invoice'- LOOKUP_INVOICE =
'lookup_invoice'- LIST_TRANSACTIONS =
'list_transactions'- GET_BALANCE =
'get_balance'- GET_INFO =
'get_info'- SIGN_MESSAGE =
'sign_message'- NOTIFICATIONS =
capability marker, not a method
'notifications'- ALL =
[ PAY_INVOICE, MULTI_PAY_INVOICE, PAY_KEYSEND, MULTI_PAY_KEYSEND, MAKE_INVOICE, LOOKUP_INVOICE, LIST_TRANSACTIONS, GET_BALANCE, GET_INFO, SIGN_MESSAGE ].freeze
- MUTATING =
The set of methods that can move funds. A connection without any of these is “read-only”.
[ PAY_INVOICE, MULTI_PAY_INVOICE, PAY_KEYSEND, MULTI_PAY_KEYSEND ].freeze
- NOTIFICATION_TYPES =
%w[payment_received payment_sent].freeze