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
How can I get the value of getFilterChanges, Please tell me how to use getFilterChanges and getFilterLogs #294
Comments
|
cause transfer doesn't have logs. More details can ask for @ouwenkg |
Is it convenient to paster your test contract here? |
I only have construction contract code: 0x608060405234801561001057600080fd5b503373ffffffffffffffffffffffffffffffffffffffff167f4f8cfde3439a1a302c21ca51eec26086efbfd940b8c0279889fc6bb6e73ecc6660405160405180910390a2610136806100636000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806360fe47b1146100515780636d4ce63c1461007e575b600080fd5b34801561005d57600080fd5b5061007c600480360381019080803590602001909291905050506100a9565b005b34801561008a57600080fd5b50610093610101565b6040518082815260200191505060405180910390f35b806000819055503373ffffffffffffffffffffffffffffffffffffffff167ffd28ec3ec2555238d8ad6f9faf3e4cd10e574ce7e7ef28b73caa53f9512f65b9826040518082815260200191505060405180910390a250565b600080549050905600a165627a7a72305820cf7f3327f93c31df14de53a6b241db977f745ec600a5e7b78af619fc38e7e6150029 |
#297 |
Please check our [docs][https://docs.citahub.com/zh-CN/cita/rpc-guide/rpc#getfilterchanges]. |
What's the situation? |
Sorry, I haven't start yet. Always interupted. |
Testcases about the problem:Testing
|
yeah, of course, filter id watches the changes, so if you send a tx, how can get a changes? so it's not a bug, right? maybe add some descriptions about it. @ouwenkg |
cool. btw, you have edited my comment... |
Yeal, not a bug. I will update our docs later this afternoon. Sorry, my mistake. |
Description
In the same block getFilterChanges have value return but getFilterLogs have not return.
Steps to Reproduce
output:
{ "id": 4, "jsonrpc": "2.0", "result": { "hash": "0x6357e35851cc54ba9fc446f18938f255eea2d74ca14f05b0a5c35ca9089d059f", "status": "OK" } }
rpc getTransactionReceipt --hash 0x6357e35851cc54ba9fc446f18938f255eea2d74ca14f05b0a5c35ca9089d059f
output:
"topics": [ "0x4f8cfde3439a1a302c21ca51eec26086efbfd940b8c0279889fc6bb6e73ecc66", "0x0000000000000000000000004b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523" ]
key create
/env.sh curl -X POST --data '{"jsonrpc":"2.0","method":"getFilterChanges","params":["0xf"],"id":74}' 127.0.0.1:1337
start with a null value return , post again has output
{ "jsonrpc": "2.0", "id": 74, "result": [ "0x0e03c53bd78f842295f548539f72bde9f104ddf92e91ea1a2cd2a3d73e6fba53", "0x59f21942f94013becb10533ebea392d9ad9337112122df8e878c208489746764", "0xa370cfb36db5461288afac715db8b78b3d7e3331a66474608b004e82255ef4bf", "0x2b50a41e3e9e3d964fb1f8fc48bc3aa71c52ccfb968b02213f44a560d1edb541", "0x191f5201bc9810dce9407f2ff69efc20adbcba6345fc02347f585dfddd712f32", "0x616e312285a1d604a397806bf967926476bf3289b90d125cebb3518fe4ec4f1a", "0x8870bb49413600daaeb48db3417a63858892c982b9316a297d54b78f838e147a", "0xb001c716f8dc5dac0e20ed884d919401aef29558bb959ff3d346a2e6c1ca3a87", "0x480362e570b0ed1b433490bb5b3f4e1f01fae5758f6140bf66e5b3d67b97ecfd", "0x020839a5930459aa970794b5bca0fd3433b02a9270820524f098ac38ab150364", "0x3f56922891d0df5e2f4ec56f0541b9a512988e5f10d476879caf492841db5ba5", "0x07ab1b5a863835822f95aba02aa8718af9687e03e24343e4d11ab4d502d7d71e", "0x1af9c2cd590a1e0f6769a234fa21fff2693be3c3f98edde4364bce53adba9311", "0x48ce4fe4e5ddcce27eb2f8afde5bafa0e08bb9d53a7197b34421afa789d02c1f", "0xefcd69237c89f71fb8c8a5171095a9b837d0cf65625c5b670c6c69d82e7b0443", "0x5cfcf63c3a060e4481255bb341cad12afdfad51ee300cf57efb884b6a8ddf836" ] }
6.
/env.sh curl -X POST --data '{"jsonrpc":"2.0","method":"getFilterLogs","params":["0xf"],"id":74}' 127.0.0.1:1337
output:
{ "jsonrpc": "2.0", "id": 74, "result": [] }
Expected behavior: [In the same block getFilterChanges and getFilterLogs have value return ]
Actual behavior: [In the same block getFilterChanges have value return but getFilterLogs have not return]
Reproduce how often: [every time]
Versions
develop
Additional Information
[I want to know how to use getFilterChanges and getFilterLogs , when is the value output, what result output , Thanks].
The text was updated successfully, but these errors were encountered: