-
Notifications
You must be signed in to change notification settings - Fork 100
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
List all deployed contracts/tokens? #748
Comments
NeoGo allows to iterate over contract IDs with
|
Is there a problem to add a ListContracts method to RpcServer, which uses the one that is already available in ContractManagement? |
To elaborate a bit on the steps, as I recently needed this myself, and is probably going to take some time to get accepted (if at all).
{
"jsonrpc": "2.0",
"method": "findstates",
"params": ["<your_state_root_here>","0xfffdc93764dbaddd97c48f252a53ea4643faa3fd","CA=="],
"id": 1
}
|
As I mentioned in my question, there is already a native method ListContracts. It can be just exposed as a RPC method. It returns all registered contracts (including native ones) and could also have some filter options. |
If i were to implement "FindContractLog" in RPC for #807 you would be able to do a search for "Deploy" event on the ContractManagement (0xfffdc93764dbaddd97c48f252a53ea4643faa3fd), than page through looking for a contract. But who knows when that will come out. |
The However, I think that there could be other methods more directed to this on the RPC calls themself. |
This would require you to get all contracts and on the blockchain. Check for |
Is there a way to get/search/track all deployed custom tokens/smart contracts in a private blockchain ?
Is it possible to do it through an RPC command?
I see that there is a ListContracts method in ContractManagement class, but I was not able to find a way to use/call it from a remote client.
The text was updated successfully, but these errors were encountered: