Crypto, Solana, capture JS parameters from "RpcNamespace" method on runtime (anchor, web3, smart contract program)

Job ID: 32331022

Budget: $30 – $250 USD

Looking for someone to provide code or instructions that will capture the parameters from this method: (https://project-serum.github.io/anchor/ts/index.html#RpcNamespace) after runtime on an arbitrary 3rd party page. The browser/page calls this method and after it fires I need to scrape/capture the populated values passed in (...args, ctx) as described below. The values of the object's keys maybe populated dynamically, so I'll need the final values exiting the method.

Any language or open source library that can accomplish this is okay. I need detailed instructions on how to capture it in the browser within a few seconds of it firing. I don't control the JS sources running the method, so additional JS would need to be injected in the browser before page load if needed, (VM maybe?)...

https://project-serum.github.io/anchor/ts/index.html#RpcNamespace

Need the full object value passed into this method, available for export into another script:
const txSignature = await program.rpc.increment({
accounts: {
counter,
authority,
},
});
Related categories: JavaScript Node.js Smart Contracts Web3.js Solana