Команда dm-cli deal create не работает #9

Closed
opened 2025-11-17 07:29:48 +00:00 by private-user · 4 comments
Owner

Команда dm-cli deal create не работает:

# dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   260  100    82  100   178  20187  43820 --:--:-- --:--:-- --:--:-- 65000
curl: (3) URL using bad/illegal format or missing URL
curl: (3) URL using bad/illegal format or missing URL
success: null
message: null

terminate called after throwing an instance of 'nlohmann::detail::type_error'
  what():  [json.exception.type_error.302] type must be string, but is null
Aborted
Команда dm-cli deal create не работает: ``` # dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 260 100 82 100 178 20187 43820 --:--:-- --:--:-- --:--:-- 65000 curl: (3) URL using bad/illegal format or missing URL curl: (3) URL using bad/illegal format or missing URL success: null message: null terminate called after throwing an instance of 'nlohmann::detail::type_error' what(): [json.exception.type_error.302] type must be string, but is null Aborted ```
private-user added the bug label 2025-11-17 07:29:48 +00:00
FD was assigned by private-user 2025-11-17 07:29:48 +00:00
FD closed this issue 2025-11-18 07:31:55 +00:00
Author
Owner
  1. Вывод команды dm-cli deal create не соответсвует требованию:
  • при вызове с флагом --debug отсутсвует API ответ в JSON формате.
  • при вызове без флага --debug отсутсвуют данные сделки (см. в ТЗ Пример вывода команды dm-cli deals create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -s 0.01)

# ./dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: true
message: "New deal created"

---------------DEBUG---------------
command: ./dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: 1
url: curl -s -X POST "https://testnet-dm2.bitdeals.org/api/v1/deal/create" \    -H "Content-Type: application/json" \    -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01"   }  }'
Result: 
success: true
message: "New deal created"

Payload: 
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-18 09:33:52 UTC
  salt: 655a4dcb
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2N1t5Pe45KCRMtXAQ9P9LiHAzdB5Nq4djhR
    until: 2025-11-19 09:33:52 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-02 09:33:52 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkcPYUACgkQDjku08Oit1IrfgP/UFBUNpr5zVi+kg3e+eCCAdP8
tM8SZONrXeYmcLe7XfCXw0vPCTGlt9YkrXTmKakJYxT22Jh6r642KakRfR09WyiD
ixOQx/h8s9aaK3xwT1wtqfwtRGVVlvf6hkml/At/odfUrlMqKMFcvLjeoe5aqwMT
XZGSLH5gkEujyK5g2wU=
=WS4z
-----END PGP SIGNATURE-----
---------------END DEBUG---------------
# ./dm-cli --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: true
message: "New deal created"
1. Вывод команды `dm-cli deal create` не соответсвует требованию: - при вызове с флагом `--debug` отсутсвует API ответ в JSON формате. - при вызове без флага `--debug` отсутсвуют данные сделки (см. в ТЗ Пример вывода команды `dm-cli deals create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -s 0.01`) ``` # ./dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: true message: "New deal created" ---------------DEBUG--------------- command: ./dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: 1 url: curl -s -X POST "https://testnet-dm2.bitdeals.org/api/v1/deal/create" \ -H "Content-Type: application/json" \ -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01" } }' Result: success: true message: "New deal created" Payload: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-18 09:33:52 UTC salt: 655a4dcb seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2N1t5Pe45KCRMtXAQ9P9LiHAzdB5Nq4djhR until: 2025-11-19 09:33:52 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-02 09:33:52 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkcPYUACgkQDjku08Oit1IrfgP/UFBUNpr5zVi+kg3e+eCCAdP8 tM8SZONrXeYmcLe7XfCXw0vPCTGlt9YkrXTmKakJYxT22Jh6r642KakRfR09WyiD ixOQx/h8s9aaK3xwT1wtqfwtRGVVlvf6hkml/At/odfUrlMqKMFcvLjeoe5aqwMT XZGSLH5gkEujyK5g2wU= =WS4z -----END PGP SIGNATURE----- ---------------END DEBUG--------------- ``` ``` # ./dm-cli --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: true message: "New deal created" ```
FD closed this issue 2025-11-23 04:40:17 +00:00
Author
Owner

при вызове с флагом --debug отсутсвует API ответ в JSON формате.

testnet3 dm-cli # dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: true
message: "New deal created"
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-24 11:59:41 UTC
  salt: 9f2ce994
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM
    until: 2025-11-25 11:59:41 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-08 11:59:41 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy
OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V
TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL
C5j9kicrTx1Fh4rheB0=
=jPYf
-----END PGP SIGNATURE-----

---------------DEBUG---------------
command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: 1
url: curl -s -X POST "127.0.0.1:4999/api/v1/deal/create" \    -H "Content-Type: application/json" \    -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01"   }  }'
Result: 
success: true
message: "New deal created"
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-24 11:59:41 UTC
  salt: 9f2ce994
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM
    until: 2025-11-25 11:59:41 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-08 11:59:41 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy
OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V
TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL
C5j9kicrTx1Fh4rheB0=
=jPYf
-----END PGP SIGNATURE-----

Payload: 
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-24 11:59:41 UTC
  salt: 9f2ce994
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM
    until: 2025-11-25 11:59:41 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-08 11:59:41 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy
OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V
TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL
C5j9kicrTx1Fh4rheB0=
=jPYf
-----END PGP SIGNATURE-----
---------------END DEBUG---------------

Пример присутсвия API ответа в JSON формате в выводе dm-cli --debug account status:

testnet3 dm-cli # dm-cli --debug account status --feedbacks n mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
- deal: "7e82e9c3-0e85-4635-8b53-6da7e541e6e3"
  date: "2025-09-17T11:29:35"
  statustext: "negative"
  comments: "negative comment text for test"
- deal: "3f989f08-b5a0-4ceb-80a5-acd18a6559d4"
  date: "2025-09-17T11:28:28"
  statustext: "neutral"
  comments: null
------------Summary--------------
total: 23
positive: 17
neegative: 2

---------------DEBUG---------------
command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug account status --feedbacks n mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
success: 1
url: curl -s -H "Content-Type: application/json" -d "{ \"search\":[{\"field\":\"sellercode\",\"compare\": \"EQL\",\"value\":\"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC\"}],\"orderby\":[\" date DESC\"],\"reclimit\":100,\"recoffset\":0} " 127.0.0.1:4999/api/v1/deal/feedback/list
Result: 
[{"deal": "d63350a1-8483-4c0f-87d2-8a4920f7bdba", "date": "2025-09-17T11:40:11", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T13:00:00", "status": null, "statustext": "none", "comments": "cancel deal test comment message 3", "refund": null}, {"deal": "7e82e9c3-0e85-4635-8b53-6da7e541e6e3", "date": "2025-09-17T11:29:35", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:50:01", "status": -1, "statustext": "negative", "comments": "negative comment text for test", "refund": null}, {"deal": "3f989f08-b5a0-4ceb-80a5-acd18a6559d4", "date": "2025-09-17T11:28:28", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:50:01", "status": 0, "statustext": "neutral", "comments": null, "refund": "50"}, {"deal": "2652bd26-c872-463e-8851-a3b8566cdb9d", "date": "2025-09-17T11:13:45", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:40:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "3b0092dc-5afd-47d7-8df1-b3c3e63e65d5", "date": "2025-09-17T11:13:01", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "16037045-89e3-4d75-88c9-49197d220fd2", "date": "2025-09-17T11:11:31", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T15:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "b13e031e-a85a-4bd7-8743-a7fba371fb63", "date": "2025-09-17T11:11:04", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T15:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "cd381454-f46e-41e0-837d-21acdcbfc83d", "date": "2025-09-17T11:06:12", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:30:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "9fa38910-a453-4001-8802-45336c795a2c", "date": "2025-09-17T11:04:21", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:30:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "97f3846d-a55c-489e-8b2b-6cdb40989a60", "date": "2025-09-17T11:01:47", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:03:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "14016ec2-4166-4725-8461-a69a36c676ab", "date": "2025-09-17T10:54:42", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:00:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "739ed4c3-d136-414e-88a5-38719afd6085", "date": "2023-05-29T07:52:11", "sum": 0.00100000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "05277f6b-dac9-4dab-897a-1412fbad517d", "customercode": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp", "leave_before": "2023-06-12T07:52:11", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "c9d79e5c-99aa-4116-870e-a2e2cb07d9b8", "date": "2023-05-16T13:54:33", "sum": 0.01646448, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:54:33", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "1026f1f8-ec34-48a5-845e-2760019765ff", "date": "2023-05-16T13:48:21", "sum": 0.00401573, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:48:21", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e1ebae3b-9161-4bf8-87b4-449a45f4970c", "date": "2023-05-16T13:30:30", "sum": 0.00401573, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:30:30", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "f63da373-9bb1-4797-87e5-46bce517f142", "date": "2023-05-12T12:13:09", "sum": 0.00413060, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "01ec0142-a340-4493-8d1d-4bfd37a72f96", "customercode": "n2f3cbeUUFhbz6mFLpDUzMnrt72sPu7WQK", "leave_before": "2023-05-26T12:13:09", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "22fb2015-86b3-4be9-8d71-2505f0af1f71", "date": "2023-05-10T21:26:51", "sum": 0.00399335, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:26:51", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "86ab95ec-9152-4ea7-8ef0-d662e8b9bc43", "date": "2023-05-10T21:16:43", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:16:43", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e9732874-4fad-4283-861c-fc94af8a2b51", "date": "2023-05-10T21:15:27", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:15:27", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "b59212be-ec91-4c64-8471-dfb0acd9d367", "date": "2023-05-10T21:02:39", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:02:39", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "2c7d99bc-ad8d-41d0-8284-775b148ac09e", "date": "2023-05-09T13:36:03", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-23T13:36:03", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "9eccbe73-d341-4294-8bbe-3d2bf714882a", "date": "2023-05-03T17:04:01", "sum": 0.00387604, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-17T17:04:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e17673fa-b98f-48ba-888a-3bf47d939453", "date": "2023-05-03T16:05:03", "sum": 0.00390152, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-17T16:05:03", "status": 1, "statustext": "positive", "comments": null, "refund": null}]
Payload: 
- deal: "7e82e9c3-0e85-4635-8b53-6da7e541e6e3"
  date: "2025-09-17T11:29:35"
  statustext: "negative"
  comments: "negative comment text for test"
- deal: "3f989f08-b5a0-4ceb-80a5-acd18a6559d4"
  date: "2025-09-17T11:28:28"
  statustext: "neutral"
  comments: null
------------Summary--------------
total: 23
positive: 17
neegative: 2

---------------END DEBUG---------------
при вызове с флагом --debug отсутсвует API ответ в JSON формате. ``` testnet3 dm-cli # dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: true message: "New deal created" -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-24 11:59:41 UTC salt: 9f2ce994 seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM until: 2025-11-25 11:59:41 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-08 11:59:41 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL C5j9kicrTx1Fh4rheB0= =jPYf -----END PGP SIGNATURE----- ---------------DEBUG--------------- command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: 1 url: curl -s -X POST "127.0.0.1:4999/api/v1/deal/create" \ -H "Content-Type: application/json" \ -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01" } }' Result: success: true message: "New deal created" -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-24 11:59:41 UTC salt: 9f2ce994 seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM until: 2025-11-25 11:59:41 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-08 11:59:41 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL C5j9kicrTx1Fh4rheB0= =jPYf -----END PGP SIGNATURE----- Payload: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-24 11:59:41 UTC salt: 9f2ce994 seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2NBT3u5Hn8TUoD6RpcuTUGq6rj4NcdX1FNM until: 2025-11-25 11:59:41 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-08 11:59:41 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkkSLIACgkQDjku08Oit1LRKAQAqm9Ye9lxMNN6TxmVKIvb3biy OWF1OB6i5ezevpg6zcrcsxqpQS7/gRVawq5N2JEeD4iX+Y4W+jdUjS96DsJ77/9V TjWTxtWZyOAJlWWUQ3qz2TogBVzJSluXfvR8Wky+5cE7RA2bYbDIwxhPjmLbGrXL C5j9kicrTx1Fh4rheB0= =jPYf -----END PGP SIGNATURE----- ---------------END DEBUG--------------- ``` Пример присутсвия API ответа в JSON формате в выводе `dm-cli --debug account status`: ``` testnet3 dm-cli # dm-cli --debug account status --feedbacks n mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC - deal: "7e82e9c3-0e85-4635-8b53-6da7e541e6e3" date: "2025-09-17T11:29:35" statustext: "negative" comments: "negative comment text for test" - deal: "3f989f08-b5a0-4ceb-80a5-acd18a6559d4" date: "2025-09-17T11:28:28" statustext: "neutral" comments: null ------------Summary-------------- total: 23 positive: 17 neegative: 2 ---------------DEBUG--------------- command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug account status --feedbacks n mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC success: 1 url: curl -s -H "Content-Type: application/json" -d "{ \"search\":[{\"field\":\"sellercode\",\"compare\": \"EQL\",\"value\":\"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC\"}],\"orderby\":[\" date DESC\"],\"reclimit\":100,\"recoffset\":0} " 127.0.0.1:4999/api/v1/deal/feedback/list Result: [{"deal": "d63350a1-8483-4c0f-87d2-8a4920f7bdba", "date": "2025-09-17T11:40:11", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T13:00:00", "status": null, "statustext": "none", "comments": "cancel deal test comment message 3", "refund": null}, {"deal": "7e82e9c3-0e85-4635-8b53-6da7e541e6e3", "date": "2025-09-17T11:29:35", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:50:01", "status": -1, "statustext": "negative", "comments": "negative comment text for test", "refund": null}, {"deal": "3f989f08-b5a0-4ceb-80a5-acd18a6559d4", "date": "2025-09-17T11:28:28", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:50:01", "status": 0, "statustext": "neutral", "comments": null, "refund": "50"}, {"deal": "2652bd26-c872-463e-8851-a3b8566cdb9d", "date": "2025-09-17T11:13:45", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:40:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "3b0092dc-5afd-47d7-8df1-b3c3e63e65d5", "date": "2025-09-17T11:13:01", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T12:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "16037045-89e3-4d75-88c9-49197d220fd2", "date": "2025-09-17T11:11:31", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T15:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "b13e031e-a85a-4bd7-8743-a7fba371fb63", "date": "2025-09-17T11:11:04", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T15:40:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "cd381454-f46e-41e0-837d-21acdcbfc83d", "date": "2025-09-17T11:06:12", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:30:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "9fa38910-a453-4001-8802-45336c795a2c", "date": "2025-09-17T11:04:21", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:30:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "97f3846d-a55c-489e-8b2b-6cdb40989a60", "date": "2025-09-17T11:01:47", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:03:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "14016ec2-4166-4725-8461-a69a36c676ab", "date": "2025-09-17T10:54:42", "sum": 0.00200000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "65380112-e797-4041-8254-0c8878ea36e2", "customercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "leave_before": "2025-09-17T11:00:01", "status": null, "statustext": "none", "comments": null, "refund": null}, {"deal": "739ed4c3-d136-414e-88a5-38719afd6085", "date": "2023-05-29T07:52:11", "sum": 0.00100000, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "05277f6b-dac9-4dab-897a-1412fbad517d", "customercode": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp", "leave_before": "2023-06-12T07:52:11", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "c9d79e5c-99aa-4116-870e-a2e2cb07d9b8", "date": "2023-05-16T13:54:33", "sum": 0.01646448, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:54:33", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "1026f1f8-ec34-48a5-845e-2760019765ff", "date": "2023-05-16T13:48:21", "sum": 0.00401573, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:48:21", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e1ebae3b-9161-4bf8-87b4-449a45f4970c", "date": "2023-05-16T13:30:30", "sum": 0.00401573, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-30T13:30:30", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "f63da373-9bb1-4797-87e5-46bce517f142", "date": "2023-05-12T12:13:09", "sum": 0.00413060, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "01ec0142-a340-4493-8d1d-4bfd37a72f96", "customercode": "n2f3cbeUUFhbz6mFLpDUzMnrt72sPu7WQK", "leave_before": "2023-05-26T12:13:09", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "22fb2015-86b3-4be9-8d71-2505f0af1f71", "date": "2023-05-10T21:26:51", "sum": 0.00399335, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:26:51", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "86ab95ec-9152-4ea7-8ef0-d662e8b9bc43", "date": "2023-05-10T21:16:43", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:16:43", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e9732874-4fad-4283-861c-fc94af8a2b51", "date": "2023-05-10T21:15:27", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:15:27", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "b59212be-ec91-4c64-8471-dfb0acd9d367", "date": "2023-05-10T21:02:39", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-24T21:02:39", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "2c7d99bc-ad8d-41d0-8284-775b148ac09e", "date": "2023-05-09T13:36:03", "sum": 0.00394995, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-23T13:36:03", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "9eccbe73-d341-4294-8bbe-3d2bf714882a", "date": "2023-05-03T17:04:01", "sum": 0.00387604, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-17T17:04:01", "status": 1, "statustext": "positive", "comments": null, "refund": null}, {"deal": "e17673fa-b98f-48ba-888a-3bf47d939453", "date": "2023-05-03T16:05:03", "sum": 0.00390152, "seller": "65380112-e797-4041-8254-0c8878ea36e2", "sellercode": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "customer": "779526ea-9b37-435d-819a-dc79e6fe2ed9", "customercode": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "leave_before": "2023-05-17T16:05:03", "status": 1, "statustext": "positive", "comments": null, "refund": null}] Payload: - deal: "7e82e9c3-0e85-4635-8b53-6da7e541e6e3" date: "2025-09-17T11:29:35" statustext: "negative" comments: "negative comment text for test" - deal: "3f989f08-b5a0-4ceb-80a5-acd18a6559d4" date: "2025-09-17T11:28:28" statustext: "neutral" comments: null ------------Summary-------------- total: 23 positive: 17 neegative: 2 ---------------END DEBUG--------------- ```
FD referenced this issue from a commit 2025-11-25 17:09:05 +00:00
FD closed this issue 2025-11-25 17:09:05 +00:00
Author
Owner

В начале строки отсутсвуют тире: -BEGIN PGP SIGNED MESSAGE-----

Должно быть -----BEGIN PGP SIGNED MESSAGE-----:

testnet3 dm-cli # dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: true
message: "New deal created"
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-26 08:45:09 UTC
  salt: 8ea79803
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H
    until: 2025-11-27 08:45:09 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-10 08:45:09 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkmvhkACgkQDjku08Oit1K0oAP9GtStyU7dA445/eaiEfD4pfyP
m7B9lp3eLaxArfe8G3bWsAJPxEuNlcT16EiRntytGxA6yoVEcmeaR+Dl81y87xuj
iFeSJzG0qJVodTbuqWWmnbclinwGWzY4YjlOhidcVLUjcmLuzKnCjM5JOTEtUvTn
SQ7lbDiHhbIB5bEuo/I=
=w0Sv
-----END PGP SIGNATURE-----

---------------DEBUG---------------
command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01
success: 1
url: curl -s -X POST "127.0.0.1:4999/api/v1/deal/create" \    -H "Content-Type: application/json" \    -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01"   }  }'
Result: 
{"id": "c4c2a5e1f7bb1995", "action": "Created", "address": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "deal": {"order": "Created", "type": "Prepayment", "code": "2de374dda03dcddff8c91df7f7211f6b7303d9ae", "at": "https://testnet-dm2.bitdeals.org", "date": "2025-11-26 08:45:09 UTC", "salt": "8ea79803", "seller": {"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp", "rating": "0+, 30%"}, "customer": {"address": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "rating": "0+, 45%"}, "payment": {"address": "2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H", "until": "2025-11-27 08:45:09 UTC", "sum": "0.01 tBTC"}, "feedback": {"leave_before": "2025-12-10 08:45:09 UTC"}}, "result": {"success": true, "message": "New deal created"}, "payload": "LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEE1MTIKCmRlYWw6CiAgb3JkZXI6IENyZWF0ZQogIHR5cGU6IHByZXBheW1lbnQKICBhdDogaHR0cHM6Ly90ZXN0bmV0LWRtMi5iaXRkZWFscy5vcmcKICBkYXRlOiAyMDI1LTExLTI2IDA4OjQ1OjA5IFVUQwogIHNhbHQ6IDhlYTc5ODAzCiAgc2VsbGVyOgogICAgYWRkcmVzczogbW51bUhzOUhRTXJ3MlExaUtMTm54OU56RXhTN25NTG15cAogICAgcmF0aW5nOiAwKywgMzAlCiAgY3VzdG9tZXI6CiAgICBhZGRyZXNzOiBtcmFYeDdKcm1BbXVLeXBkSjF2c2VRQlh5U3NkUlpFNUFDCiAgICByYXRpbmc6IDArLCA0NSUKICBwYXltZW50OgogICAgYWRkcmVzczogMk5CNEd4MkRZWEJtYzVOVFJyS002eEVFNk04RlVRRkV0OUgKICAgIHVudGlsOiAyMDI1LTExLTI3IDA4OjQ1OjA5IFVUQwogICAgc3VtOiAwLjAxIHRCVEMKICBmZWVkYmFjazoKICAgIGxlYXZlLWJlZm9yZTogMjAyNS0xMi0xMCAwODo0NTowOSBVVEMKLS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogY2MKCndwd0VBUUVLQUFZRkFta212aGtBQ2drUURqa3UwOE9pdDFLMG9BUDlHdFN0eVU3ZEE0NDUvZWFpRWZENHBmeVAKbTdCOWxwM2VMYXhBcmZlOEczYldzQUpQeEV1TmxjVDE2RWlSbnR5dEd4QTZ5b1ZFY21lYVIrRGw4MXk4N3h1agppRmVTSnpHMHFKVm9kVGJ1cVdXbW5iY2xpbndHV3pZNFlqbE9oaWRjVkxVamNtTHV6S25Dak01Sk9URXRVdlRuClNRN2xiRGlIaGJJQjViRXVvL0k9Cj13MFN2Ci0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ=="}
Payload: 
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

deal:
  order: Create
  type: prepayment
  at: https://testnet-dm2.bitdeals.org
  date: 2025-11-26 08:45:09 UTC
  salt: 8ea79803
  seller:
    address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp
    rating: 0+, 30%
  customer:
    address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
    rating: 0+, 45%
  payment:
    address: 2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H
    until: 2025-11-27 08:45:09 UTC
    sum: 0.01 tBTC
  feedback:
    leave-before: 2025-12-10 08:45:09 UTC
-----BEGIN PGP SIGNATURE-----
Version: cc

wpwEAQEKAAYFAmkmvhkACgkQDjku08Oit1K0oAP9GtStyU7dA445/eaiEfD4pfyP
m7B9lp3eLaxArfe8G3bWsAJPxEuNlcT16EiRntytGxA6yoVEcmeaR+Dl81y87xuj
iFeSJzG0qJVodTbuqWWmnbclinwGWzY4YjlOhidcVLUjcmLuzKnCjM5JOTEtUvTn
SQ7lbDiHhbIB5bEuo/I=
=w0Sv
-----END PGP SIGNATURE-----
---------------END DEBUG---------------

В начале строки отсутсвуют тире: `-BEGIN PGP SIGNED MESSAGE-----` Должно быть `-----BEGIN PGP SIGNED MESSAGE-----`: ``` testnet3 dm-cli # dm-cli --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: true message: "New deal created" -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-26 08:45:09 UTC salt: 8ea79803 seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H until: 2025-11-27 08:45:09 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-10 08:45:09 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkmvhkACgkQDjku08Oit1K0oAP9GtStyU7dA445/eaiEfD4pfyP m7B9lp3eLaxArfe8G3bWsAJPxEuNlcT16EiRntytGxA6yoVEcmeaR+Dl81y87xuj iFeSJzG0qJVodTbuqWWmnbclinwGWzY4YjlOhidcVLUjcmLuzKnCjM5JOTEtUvTn SQ7lbDiHhbIB5bEuo/I= =w0Sv -----END PGP SIGNATURE----- ---------------DEBUG--------------- command: /root/dm-cli/dm-cli/dm-cli --address 127.0.0.1:4999 --debug --address https://testnet-dm2.bitdeals.org deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 success: 1 url: curl -s -X POST "127.0.0.1:4999/api/v1/deal/create" \ -H "Content-Type: application/json" \ -d '{"at":"https://testnet-dm2.bitdeals.org","type":"prepayment","seller":{"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp"},"customer":{"address":"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"},"payment":{"sum":"0.01" } }' Result: {"id": "c4c2a5e1f7bb1995", "action": "Created", "address": "mynFyJJkRhsbB6y1Q5kTgDGckVz2m9NKH8", "deal": {"order": "Created", "type": "Prepayment", "code": "2de374dda03dcddff8c91df7f7211f6b7303d9ae", "at": "https://testnet-dm2.bitdeals.org", "date": "2025-11-26 08:45:09 UTC", "salt": "8ea79803", "seller": {"address": "mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp", "rating": "0+, 30%"}, "customer": {"address": "mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC", "rating": "0+, 45%"}, "payment": {"address": "2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H", "until": "2025-11-27 08:45:09 UTC", "sum": "0.01 tBTC"}, "feedback": {"leave_before": "2025-12-10 08:45:09 UTC"}}, "result": {"success": true, "message": "New deal created"}, "payload": "LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEE1MTIKCmRlYWw6CiAgb3JkZXI6IENyZWF0ZQogIHR5cGU6IHByZXBheW1lbnQKICBhdDogaHR0cHM6Ly90ZXN0bmV0LWRtMi5iaXRkZWFscy5vcmcKICBkYXRlOiAyMDI1LTExLTI2IDA4OjQ1OjA5IFVUQwogIHNhbHQ6IDhlYTc5ODAzCiAgc2VsbGVyOgogICAgYWRkcmVzczogbW51bUhzOUhRTXJ3MlExaUtMTm54OU56RXhTN25NTG15cAogICAgcmF0aW5nOiAwKywgMzAlCiAgY3VzdG9tZXI6CiAgICBhZGRyZXNzOiBtcmFYeDdKcm1BbXVLeXBkSjF2c2VRQlh5U3NkUlpFNUFDCiAgICByYXRpbmc6IDArLCA0NSUKICBwYXltZW50OgogICAgYWRkcmVzczogMk5CNEd4MkRZWEJtYzVOVFJyS002eEVFNk04RlVRRkV0OUgKICAgIHVudGlsOiAyMDI1LTExLTI3IDA4OjQ1OjA5IFVUQwogICAgc3VtOiAwLjAxIHRCVEMKICBmZWVkYmFjazoKICAgIGxlYXZlLWJlZm9yZTogMjAyNS0xMi0xMCAwODo0NTowOSBVVEMKLS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogY2MKCndwd0VBUUVLQUFZRkFta212aGtBQ2drUURqa3UwOE9pdDFLMG9BUDlHdFN0eVU3ZEE0NDUvZWFpRWZENHBmeVAKbTdCOWxwM2VMYXhBcmZlOEczYldzQUpQeEV1TmxjVDE2RWlSbnR5dEd4QTZ5b1ZFY21lYVIrRGw4MXk4N3h1agppRmVTSnpHMHFKVm9kVGJ1cVdXbW5iY2xpbndHV3pZNFlqbE9oaWRjVkxVamNtTHV6S25Dak01Sk9URXRVdlRuClNRN2xiRGlIaGJJQjViRXVvL0k9Cj13MFN2Ci0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ=="} Payload: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 deal: order: Create type: prepayment at: https://testnet-dm2.bitdeals.org date: 2025-11-26 08:45:09 UTC salt: 8ea79803 seller: address: mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp rating: 0+, 30% customer: address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC rating: 0+, 45% payment: address: 2NB4Gx2DYXBmc5NTRrKM6xEE6M8FUQFEt9H until: 2025-11-27 08:45:09 UTC sum: 0.01 tBTC feedback: leave-before: 2025-12-10 08:45:09 UTC -----BEGIN PGP SIGNATURE----- Version: cc wpwEAQEKAAYFAmkmvhkACgkQDjku08Oit1K0oAP9GtStyU7dA445/eaiEfD4pfyP m7B9lp3eLaxArfe8G3bWsAJPxEuNlcT16EiRntytGxA6yoVEcmeaR+Dl81y87xuj iFeSJzG0qJVodTbuqWWmnbclinwGWzY4YjlOhidcVLUjcmLuzKnCjM5JOTEtUvTn SQ7lbDiHhbIB5bEuo/I= =w0Sv -----END PGP SIGNATURE----- ---------------END DEBUG--------------- ```
FD closed this issue 2025-11-26 11:10:51 +00:00
Author
Owner

Ошибка при вызове команды dm-cli deal create:

testnet3 dm-cli # ./dm-cli --address 127.0.0.1:4999 --debug deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 
terminate called after throwing an instance of 'nlohmann::json_abi_v3_12_0::detail::type_error'
  what():  [json.exception.type_error.302] type must be string, but is null
Aborted
Ошибка при вызове команды `dm-cli deal create`: ``` testnet3 dm-cli # ./dm-cli --address 127.0.0.1:4999 --debug deal create -t prepayment -s mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp -c mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC -g 0.01 terminate called after throwing an instance of 'nlohmann::json_abi_v3_12_0::detail::type_error' what(): [json.exception.type_error.302] type must be string, but is null Aborted ```
FD referenced this issue from a commit 2025-11-28 09:47:51 +00:00
FD closed this issue 2025-11-28 09:47:51 +00:00
private-user referenced this issue from a commit 2026-01-30 08:28:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: private/dm-cli#9