create-offer

POST {{market-api-endpoint}}/offers

Creating an offer (sale) happens in multiple steps: * create offer using post (create-offer-sale) * retrieve all transactions that need to happen for the sale (GET offer-get-preparation-transactions) * if preparation transactions contains approve, PATCH using add-offer-txApprove * Sign the data with the nft owner's wallet * Add this signature to the offer: PATCH add-offer-signature

Request Body

{"type"=>"SALE", "nft"=>{"tokenId"=>"151", "address"=>"0x62d726d49c8c544968950d25847601b4c3831c64", "chain"=>"MATIC"}, "sellerAddress"=>"0x43e6197B707A1bbF6fA8A4b6bfB34f31e82da953", "externalSellerId"=>"123-4567", "price"=>666}

RESPONSES

status: Created

{"success":true,"result":{"id":"4a997515-8d44-4c56-9b8b-09681775d47c","nft":{"id":"2","address":"0xdbd6fef0a23f64a2b17749bba4232256475dcfb9","chain":"MATIC","name":"test NFT","description":"Chuck is a Male Tall Chicken Who is the Leader of The Chicken Siblings. He is Cool, Daring and Wacky. He can be Selfish and Stubborn When it Comes To Challenges, But he is An True Softie when it Comes To His Siblings. In Rebel to the Beak, It revealed that He is Allergic to Monstonuts and In The Good, The Bad and The Clucky, It also Revealed that He Used to Be one Of the Scouts from Slurp,s Little Cowboys Scout Camp along With Finley, Ainta and Hugo. He is the youngest of the three.","imageUrl":"https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg","url":"https://en.wikipedia.org/wiki/Space_Chickens_in_Space","imagePreviewUrl":"https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg","imageThumbnailUrl":"https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg","animationUrls":[{"type":"audio","value":"https://file-examples-com.github.io/uploads/2017/11/file_example_WAV_10MG.wav"},{"type":"video","value":"https://img.arkane.network/marketing/SpaceChickens/space_chickens_trailer.mp4"}],"fungible":false,"attributes":[{"type":"property","name":"Talent","value":"Leadership"},{"type":"property","name":"Allergic","value":"Monstonuts"},{"type":"property","name":"Hobby","value":"Scouts"},{"type":"stat","name":"Cool","value":"9","displayType":"number","maxValue":10},{"type":"stat","name":"Daring","value":"8","displayType":"number","maxValue":10},{"type":"stat","name":"Noise","value":"8","displayType":"number","maxValue":10},{"type":"stat","name":"Age","value":"3","displayType":"number"},{"type":"boost","name":"Crafting","value":"+5","displayType":"boost_number"},{"type":"boost","name":"Leadership","value":"+10","displayType":"boost_number"},{"type":"system","name":"tokenTypeId","value":"1"},{"type":"property","name":"maxSupply","value":"25"},{"type":"property","name":"mintNumber","value":"1"}],"contract":{"chain":"MATIC","address":"0xdbd6fef0a23f64a2b17749bba4232256475dcfb9","count":0,"name":"Venly","description":"Example contract created using the VENLY NFT API","symbol":"VE","url":"https://venly.io","imageUrl":"https://gblobscdn.gitbook.com/spaces%2F-MB9NX0aClLh4Gx_kawF%2Favatar-1623151896040.png?alt=media","media":[{"type":"twitter","value":"https://twitter.com/Venly_io"},{"type":"linkedin","value":"https://www.linkedin.com/company/venly-io"}],"verified":false,"premium":false,"categories":[]},"collectionIdentifier":"bc2141d2-0f1b-4c94-bec6-72552f662e87"},"sellerId":"4917b6fa-2657-4bdd-b8e8-fa5dd8bd4057","sellerNickname":"service-account-striegel-capsule","sellerAddress":"0xaed63be5e265f435f14c53a52f786de586f83523","startDate":"2021-12-17T12:37:13.943028Z","type":"SALE","status":"NEW","dataToSign":"4a997515-8d44-4c56-9b8b-09681775d47c_0xaed63be5e265f435f14c53a52f786de586f83523_0xe885A1cD1b67bDC352A113AB2e6A5Fc6C924F888_2","createdOn":"2021-12-17T12:37:13.950300Z","createdBy":"4917b6fa-2657-4bdd-b8e8-fa5dd8bd4057","modifiedOn":"2021-12-17T12:37:13.950300Z","modifiedBy":"4917b6fa-2657-4bdd-b8e8-fa5dd8bd4057","signed":false,"currency":"USDC","price":777,"amount":1,"remainingAmount":1,"minAmount":1,"maxAmount":1}}