用 Ruby SDK 构建了一个交易,input 有 81 个 CKB,outputs 加起来一共 80.996 CKB,为什么广播后会报错:jsonrpc error: {:code=>-3, :message=>"Transaction(InsufficientCellCapacity)"}
是因为找零 Cell 的 capacity 太小,不足以覆盖 Cell 本身的大小?我把找零改成 10.999 CKB 发现还是一样报错,那么一个 Cell 最小的 capacity 是多少呢?53 CKB 吗?
{
:version=>"0x0",
:cell_deps=>[
{
:out_point=>{
:tx_hash=>"0xbd864a269201d7052d4eb3f753f49f7c68b8edc386afc8bb6ef3e15a05facca2",
:index=>"0x0"
},
:dep_type=>"dep_group"
},
{
:out_point=>{
:tx_hash=>"0xbd864a269201d7052d4eb3f753f49f7c68b8edc386afc8bb6ef3e15a05facca2",
:index=>"0x1"
},
:dep_type=>"dep_group"
}
],
:header_deps=>[],
:inputs=>[
{
:previous_output=>{
:tx_hash=>"0x48ac153b1fbaa1fe1632d0678e20d2be95d6014c8cfb98438acbdbe4af6e34e6",
:index=>"0x0"
},
:since=>"0x0"
}
],
:outputs=>[
{
:capacity=>"0x1dcd65000",
:lock=>{
:code_hash=>"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
:args=>"0x146298961d5cd69db8674a41e405fa10e60fc199",
:hash_type=>"type"},
:type=>nil
},
{
:capacity=>"0x5efc680",
:lock=>{
:code_hash=>"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
:args=>"0xa588819eae99da6a32f744f6303e64788234f658",
:hash_type=>"type"
},
:type=>nil
}
],
:outputs_data=>["0x", "0x"],
:witnesses=>[
"0x55000000100000005500000055000000410000008c2cf21dac73009fa9983ac05d80623486898e08e3ad3ad203a201033e5a8fb546f8620486b2126dc990439c9d939d79ce5b4032d63ab942ed6ba51d6ac07fa401"
],
:hash=>"0x6b0c3424879ead6e37d5745ce5247b7228e6a4f4f36fe2f64ca5e983130dc856"
}
61 CKB