Closed gpBlockchain closed 2 years ago
commit:cacb8875902786efb2a0352d45412f4f7e634ea1
with_data:false => output_data!=null
curl --location --request POST 'http://localhost:9000' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc":"2.0", "method":"get_cells", "params":[{"script":{"code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data","args":"0x"},"script_type":"type","with_data":false},"asc","0x10"], "id":64 }' {"jsonrpc":"2.0","result":{"last_cursor":"0x40e683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d700123400000000006ba1710000000100000004","objects":[{"block_number":"0x6b9d24","out_point":{"index":"0x4","tx_hash":"0x50c2146d64e15292ca480fadc753f1aa8317e9165d7d53c8c2796cfb316e8b24"},"output":{"capacity":"0x2540be400","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":"0x1234","tx_index":"0x1"},{"block_number":"0x6ba171","out_point":{"index":"0x4","tx_hash":"0x5f07c7811174f58d5abfeee4adbe2b3951fc49bebc88fe25d1989c3c3d63852c"},"output":{"capacity":"0x2540be400","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":"0x1234","tx_index":"0x1"}]},"id":64}
with_data:false => output_data==null
curl --location --request POST 'http://localhost:8116' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc":"2.0", "method":"get_cells", "params":[{"script":{"code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data","args":"0x"},"with_data":false,"script_type":"type"},"asc","0x10"], "id":64 }' {"jsonrpc":"2.0","result":{"last_cursor":"0x60e683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d700123400000000006ba1710000000100000004","objects":[{"block_number":"0x66cc03","out_point":{"index":"0x0","tx_hash":"0x09b4539a27264334655e4be917bbf123d9a73219a14cd81857c12ceab146a731"},"output":{"capacity":"0x2540be400","lock":{"args":"0x43d509d97f26007a285f39241cffcd411157196c","code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type"},"type":{"args":"0x","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":null,"tx_index":"0x1"},{"block_number":"0x6b94a8","out_point":{"index":"0x1","tx_hash":"0x3520221ab1fcb6f2efe8bf104384f5cf26a38b94214c5a0f2ef0dc1d8cda17e3"},"output":{"capacity":"0x3d77a0500","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":null,"tx_index":"0x1"},{"block_number":"0x6b94f4","out_point":{"index":"0x4","tx_hash":"0x82ccbbf381d8fbf473251480f4344000efdf5fdaec06eb5f031afc8de56edc9f"},"output":{"capacity":"0x3d77a0500","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":null,"tx_index":"0x1"},{"block_number":"0x6b9d24","out_point":{"index":"0x4","tx_hash":"0x50c2146d64e15292ca480fadc753f1aa8317e9165d7d53c8c2796cfb316e8b24"},"output":{"capacity":"0x2540be400","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":null,"tx_index":"0x1"},{"block_number":"0x6ba171","out_point":{"index":"0x4","tx_hash":"0x5f07c7811174f58d5abfeee4adbe2b3951fc49bebc88fe25d1989c3c3d63852c"},"output":{"capacity":"0x2540be400","lock":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"},"type":{"args":"0x1234","code_hash":"0xe683b04139344768348499c23eb1326d5a52d6db006c0d2fece00a831f3660d7","hash_type":"data"}},"output_data":null,"tx_index":"0x1"}]},"id":64}
commit:cacb8875902786efb2a0352d45412f4f7e634ea1
ckb-light-client
with_data:false => output_data!=null
ckb-index
with_data:false => output_data==null