Open Nana-EC opened 1 month ago
OAuth Integration: Each user account will be associated with an OAuth token signed by the keypair corresponding to a Hedera account. WalletConnect will be used to facilitate message passing to user wallets for signing tokens.
Problem
It may be useful for a BN to receieve payments for providing both data aailabilty and additonal API services to callers
Solution
Add logic that may facilitate the recouping of BN management costs
Estimation considerations
1) Consumers need to pay on each Block Node they are using. 2) Safely store BN user info. 3) Consumers can pre-load their balance 4) Balance is maintained for every consumer consumer. When the balance is 0, stop serving with an error. 5) gRPC endpoint to find account and pricing information. 6) Debit with each streaming item based on bytes. 7) getBalance() endpoint. 8) "Allowances" may be a consideration but needs to be explored.
Alternatives
No response