Blockchain
option | Description |
---|---|
–txindex | Maintain a full transaction index, used by the getrawtransaction rpc call (default: 1) |
–addressindex | Maintain a full address index, used to query for the balance, txids and unspent outputs for addresses (default: 0) |
–timestampindex | Maintain a timestamp index for block hashes, used to query blocks hashes by a range of timestamps (default: 0) |
–spentindex | Maintain a full spent index, used to query the spending txid and input index for an outpoint (default: 0) |
如果已經下好帳本,要新增 index 功能,要加上 –reindex
mytxid, n, address, amount 都要填
input 照著步驟1.得到的結果填
假設這筆 txid 有10塊錢,要給對方5塊錢,交易費為0.001,則 address 有兩筆,一筆填對方地址,amount 填5塊,另一筆填自己地址,amount 填4.999塊