'NEAR Protocol - How to request adding access key with transfer-only permission?

I was able to request adding a key to an account using the NEAR wallet using this url: https://wallet.testnet.near.org/login/

After playing a bit with the URL parameters, I figured out that if we send the contract_idparamters, the call requests a FunctionCall access key. Without it, the call requests a FullAccess key.

The question is how to make a request with certain permissions only? For example Transfer Only.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source