Giter Club home page Giter Club logo

Comments (2)

ConanMishler avatar ConanMishler commented on September 22, 2024 1

set a lower limit for api calls, where minimum purchase possible==1000 queries

Ok, I had started to document it as 100 queries min, but I'll change it to 1000 min

display all pricing info as cost_per_query eg $0.0001/query - TBD

I think it'll be best to return api_call_cost in terms of cost per 1000 queries, since that is the minimum they can pay. That will also prevent us from having too many zeros before the number of interest (e.g. 0.000000001 ETH)

when a payment is made after the expiry_time has passed, refund the full payment minus gas fees - TBD

I think this one will have to wait till Snode payment processor logic is integrated with payment channel Smart Contract, but I'll document it this way in the API docs.

Thanks for creating the issue!

from eth-payment-processor.

ConanMishler avatar ConanMishler commented on September 22, 2024

when a payment is made after the expiry_time has passed, refund the full payment minus gas fees - TBD

This won't be possible till after we have payment channel smart contracts in place. For now, payments made after quote_expiry_time has passed will get half the normal number of API calls awarded. This is basically what the old payment processor did, though in an extremely complex and convoluted way which was mixed up with tier1 vs tier2 Hydra considerations.

the same address should be returned for all available payment networks: eth_address, avax_address and nevm_address

I tried, but failed to get this to happen. The web3 lib code which generates the address for a new web3 account accepts a secret token, which is basically just a cryptographically strong large random number. I thought by passing the exact same secret token to the code that generates eth_address, avax_address and nevm_address, I'd get the same address generated for all 3. It didn't work that way.

from eth-payment-processor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.