Saltar al contenido principal

marketplace_push_offer

Creates new offer and publish it on the blockchain.

URL: http://127.0.0.1:31113/json_rpc

Request:

{
"id": 0,
"jsonrpc": "2.0",
"method": "marketplace_push_offer",
"params": {
"od": {
"ap": "100000",
"at": "1000000",
"b": "",
"cat": "",
"cnt": "Ranko +495211111111",
"com": "Dobr dan",
"do": "full amount, by parts",
"et": 0,
"fee": 1000000,
"index_in_tx": 0,
"lci": "Moscow",
"lco": "Russia",
"ot": 0,
"p": "INFINIUM",
"pt": "infinium",
"security": "40fa6db923728b38962718c61b4dc3af1acaa1967479c73703e260dc3609c58d",
"t": "USDT",
"timestamp": 1712683857,
"tx_hash": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852",
"tx_original_hash": "cc608f59f8080e2fbfe3c8c80eb6e6a953d47cf2d6aebd345bada3a1cab99852",
"url": ""
}
}
}

Request description:

      "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.

Response:

{
"id": 0,
"jsonrpc": "2.0",
"result": {
"tx_blob_size": 1234,
"tx_hash": "40fa6db923728b38962718c61b4dc3af1acaa1967479c73703e260dc3609c58d"
}
}

Response description:

    "tx_blob_size": Size of the transaction blob.
"tx_hash": Transaction hash.