marketplace_push_update_offer
Updates existing offer that this wallet created, and publish updated version on the blockchain
URL: http:://127.0.0.1:11211/json_rpc
Request:
{
"id": 0,
"jsonrpc": "2.0",
"method": "marketplace_push_update_offer",
"params": {
"no": 0,
"od": {
"ap": "100000",
"at": "10000000",
"b": "",
"cat": "",
"cnt": "Ranko +38211111111",
"com": "Dobr dan",
"do": "full amount, by parts",
"et": 0,
"fee": 10000000000,
"index_in_tx": 0,
"lci": "Kolasin",
"lco": "Montenegro",
"ot": 0,
"p": "ZANO",
"pt": "zano",
"security": "40fa6db923728b38962718c61b4dc3af1acaa1967479c73703e260dc3609c58d",
"t": "USDT",
"timestamp": 1712683857,
"tx_hash": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852",
"tx_original_hash": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852",
"url": ""
},
"tx_id": "40fa6db923728b38962718c61b4dc3af1acaa1967479c73703e260dc3609c58d"
}
}
Request description:
"no": Number of offer entrie inside transacton(likely 0)
"ap": Amount of the currency
"at": Smount of other currency or goods
"b": Bonus associated with the offer
"cat": Category of the offer
"cnt": Contacts related to the offer
"com": Comment associated with the offer
"do": Deal option for the offer
"et": Expiration time of the offer
"fee": Fee associated with the transaction
"index_in_tx": Index of the tx_service_attachment entrie in transaction
"lci": City of the offer location
"lco": Country of the offer location
"ot": Type of the offer: OFFER_TYPE_PRIMARY_TO_TARGET(SELL ORDER) - 0, OFFER_TYPE_TARGET_TO_PRIMARY(BUY ORDER) - 1 etc.
"p": Currency for goods
"pt": Types of payment accepted for the offer
"security": Onwer's public key for access control
"t": Target: currency / goods
"timestamp": Timestamp of the transaction
"tx_hash": Transaction hash represented as a hexadecimal string
"tx_original_hash": Origin transaction hash represented as a hexadecimal string(if offer updated)
"url": URL for previewing the offer
"tx_id": Transaction ID represented as a hexadecimal string
Response:
{
"id": 0,
"jsonrpc": "2.0",
"result": {
"tx_blob_size": 1232,
"tx_hash": "40fa6db923728b38962718c61b4dc3af1acaa1967479c73703e260dc3609c58d"
}
}
Response description:
"tx_blob_size": Size of the transaction blob
"tx_hash": Transaction hash