Proxy | Call | example
See original GitHub issueCould you please help me to recreate this behavior via code ?

I’m wondering what to use as Call
parameter:
api.tx.proxy.proxy(primaryAccount, null, 'Call Parameter')
My code, without the proxy involved, looks like:
const extrinsic = api.tx.identity.provideJudgement(registrarIndex,target,judgement)
const txHash = await extrinsic.signAndSend(registrarAccount)
Maybe something like this ?
const callIndex = api.tx.identity.provideJudgement.callIndex
const extrinsic = api.tx.proxy.proxy(primaryAccount, null, { callIndex, args:[registrarIndex,target,judgement] })
const txHash = await extrinsic.signAndSend(proxyAccount)
Thanks !
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What is Voice Proxy? | Twilio
Voice Proxy, also known as Masked Calling, is the technique used to protect users' private information by providing an intermediary number so that...
Read more >Proxy - JavaScript - MDN Web Docs
For example, this code creates a proxy for the target object. ... use Reflect methods within a proxy trap, and the Reflect method...
Read more >Step 8: Deploy and call a sample proxy - Apigee - Google Cloud
Click API Proxies in the main view. From the Select Environment drop-down list, select an environment. Click Create new. Click Reverse proxy (most...
Read more >Understanding APIs and API proxies | Apigee Edge
API proxies decouple the app-facing API from your backend services, shielding those apps from backend code changes. As you make backend changes ...
Read more >What Is an API Proxy? | heynode.com
A proxy is something that acts on behalf of something else. Sitting between your application and your backend, API proxies provide an interface...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, SubmittableExrinsic can be passed - there are specific construction checks to allow them so it is easier to use, so you can pass a Call to a submittable or vice-versa. aka you don’t need to manually construct like in your example above, this is simpler and cleaner -
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.