I want to pay all costs for some contract users (probably forever). The idea is to incorporate more users in NEAR ecosystem and provide them the ability to use my contract for free for easier onboarding.
The scenario similar to the one described in the docs:
https://docs.near.org/docs/concepts/gas#what-about-prepaid-gas
I've read and re-read this section several times and still don't get how exactly to achieve this.
Let's take this pseudo-contract:
impl Pseudo {
pub fn do_something(&mut self) {
... does something valuable ...
}
}
How to pay gas fees for the user given that the user calls my near-sdk-rs
contract from their own account using near-api-js
? Please, provide some example(s). The goal is to make calling pseudo.do_something()
completely free for the user.