You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some bigger exchanges like okx.com or gate.io you can only withdraw chia to a whitelisted adress.
If one wants to make a withdrawal programatically one needs to supply always the same wallet address.
Ideal for this would be the first wallet address, obtainable with chia keys show:
Problem:
Unfortunately the same endpoint (get_public_keys & get_private_keys) does not return this wallet address. The first wallet address is unavailable in RPC.
This means that a address has to be either hardcoded or the management software has to store the adress somewhere in a config file which both is suboptimal for managing larger environments.
Proposal
I propose to add the first wallet address to the RPC interface for several reasons:
More options to interact with the wallet as stated above
consistency with the capabilities of the cli interface
The first wallet address can be implemented in different ways:
like in CLI when calling get_public_keys (for consistency with cli, but I think its inapropriate there)
in the wallet information when calling get_wallets (probably the cli should also be adapted then to show in chia wallet show)
As an option or additional parameter in get_next_address eg:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Into:
For some bigger exchanges like okx.com or gate.io you can only withdraw chia to a whitelisted adress.
If one wants to make a withdrawal programatically one needs to supply always the same wallet address.
Ideal for this would be the
first wallet address
, obtainable with chia keys show:Problem:
Unfortunately the same endpoint (
get_public_keys
&get_private_keys
) does not return this wallet address. The first wallet address is unavailable in RPC.This means that a address has to be either hardcoded or the management software has to store the adress somewhere in a config file which both is suboptimal for managing larger environments.
Proposal
I propose to add the first wallet address to the RPC interface for several reasons:
The first wallet address can be implemented in different ways:
get_public_keys
(for consistency with cli, but I think its inapropriate there)get_wallets
(probably the cli should also be adapted then to show in chia wallet show)get_next_address
eg:get_root_address
:Beta Was this translation helpful? Give feedback.
All reactions