Closed brianium closed 6 years ago
This adds support for replacing existing transaction records.
There is also an optional method flag that can be passed via json. If omitted, the default is append
method
append
To test against staging: http://bitkit-staging.0ce25c51.svc.dockerapp.io:8080
/transactions
method: append
method: reset
Sample request payloads:
{ "method": "append", "data": [ { "txid": "testid-1", "fee_rate": 0.1234, "weight": 1 }, { "txid": "testid-2", "fee_rate": 0.2345, "weight": 2 } ] }
{ "method": "reset", "data": [ { "txid": "testid-3", "fee_rate": 0.2345, "weight": 2 } ] }
{ "method": "append", "data": [ { "txid": "testid-3", "fee_rate": 0.2345, "weight": 7 } ] }
{ "data": [ { "txid": "testid-1", "fee_rate": 0.1234, "weight": 1 }, { "txid": "testid-2", "fee_rate": 0.2345, "weight": 2 } ] }
This adds support for replacing existing transaction records.
There is also an optional
method
flag that can be passed via json. If omitted, the default isappend
To test against staging: http://bitkit-staging.0ce25c51.svc.dockerapp.io:8080
/transactions
withmethod: append
and see records added/transactions
withmethod: reset
and check entire table is replaced/transactions
without a method and verify same as append behaviorSample request payloads:
append
reset
upsert
default