From 5bb0801f196135eba6fe26675b3d6ecab7f54168 Mon Sep 17 00:00:00 2001 From: SeaWorld Date: Mon, 21 Mar 2022 17:20:09 -0700 Subject: [PATCH] Added Marketplace.Bid endpoint --- namebasejs/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/namebasejs/index.js b/namebasejs/index.js index e89b5fc..d60e32d 100644 --- a/namebasejs/index.js +++ b/namebasejs/index.js @@ -546,6 +546,14 @@ class NameBase { domain, }); }, + + Bid: (domain, hnsAmount) => { + // 0.000000 hns + return this.Call('marketplace', '{{domain}}/bid', 'POST', { + domain, + buyOfferAmount: hnsAmount, + }); + }, }; Trade = {