Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling custom header injection for Clients #798

Open
desimmons opened this issue Jan 25, 2025 · 1 comment
Open

Enabling custom header injection for Clients #798

desimmons opened this issue Jan 25, 2025 · 1 comment

Comments

@desimmons
Copy link

desimmons commented Jan 25, 2025

Would maintainers of this library accept custom header injection functionality for clients? This would enable using nodes linked to Dhali, which require the custom Payment-Claim header to be used. I was thinking of including an optional constructor arg get_custom_headers, something like this:

from xrpl.clients import JsonRpcClient

def get_custom_headers():
    return {"Payment-Claim": "<a payment claim>"}

dhali_linked_rpc_node = "<url of dhali linked rpc node>"

client = JsonRpcClient(dhali_linked_rpc_node, get_custom_headers=get_custom_headers)
@mvadari
Copy link
Collaborator

mvadari commented Feb 5, 2025

Related: #763

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants