Adding a none type for the amount argument in spendTX URLs allows a wallet to prompt the user for an amount and take actions like focusing the amount input field for them or otherwise draw attention to it.
This came up when thinking through online tip-jar URL/QR generators on blog sites and similar (in the case that a tip jar is not associated with GajuPay or any similar backend service). In that case you want to be able to easily generate a URL that has no amount field, but may have a payload like "Tip for zxq9.com blog" or whatever set in the code.
Adding a `none` type for the amount argument in spendTX URLs allows a wallet to prompt the user for an amount and take actions like focusing the amount input field for them or otherwise draw attention to it.
This came up when thinking through online tip-jar URL/QR generators on blog sites and similar (in the case that a tip jar is not associated with GajuPay or any similar backend service). In that case you want to be able to easily generate a URL that has no amount field, but may have a payload like "Tip for zxq9.com blog" or whatever set in the code.
zxq9
requested review from pharpend 2025-12-19 21:37:19 +09:00
zxq9
requested review from spivee 2025-12-19 21:37:19 +09:00
zxq9
requested review from uwiger 2025-12-19 21:37:19 +09:00
zxq9
merged commit d1cae68ce7 into master2025-12-22 10:04:39 +09:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Spend and Transfer URLs are simple enough to form in place, but we lacked a standard function for forming them.
Adding a
nonetype for the amount argument in spendTX URLs allows a wallet to prompt the user for an amount and take actions like focusing the amount input field for them or otherwise draw attention to it.This came up when thinking through online tip-jar URL/QR generators on blog sites and similar (in the case that a tip jar is not associated with GajuPay or any similar backend service). In that case you want to be able to easily generate a URL that has no amount field, but may have a payload like "Tip for zxq9.com blog" or whatever set in the code.