unisat-wallet/inscribing-issues

Create Bid API error

Closed this issue · 1 comments

I'm using the marketplace API
v3/market/brc20/auction/create_bid for testnet

Details
const data3 = {
auctionId: 'jbt9z62j91educmrrjoi86t6k106zvts',
bidPrice: 10000,
address: paymentAddress,
pubkey: keyPair.publicKey.toString('hex'),
feeRate: response2.data.data.feeRate + 5,
nftAddress: userAddress,
};
const response3 = await axiosInstance.post(
'v3/market/brc20/auction/create_bid',
data3
);

The response I'm getting is:
{
"code": -1,
"msg": "Expected Buffer(Length: 32), got Buffer(Length: 48)",
"data": null
}

For reference the API response for create_bid prepare
const data2 = {
auctionId: 'jbt9z62j91educmrrjoi86t6k106zvts',
bidPrice: 10000,
address: paymentAddress,
pubkey: keyPair.publicKey.toString('hex'),
};
const response2 = await axiosInstance.post(
'v3/market/brc20/auction/create_bid_prepare',
data2
);
{
"code": 0,
"msg": "ok",
"data": {
"serverFee": 80,
"serverReal": 0,
"serverFeeRate": 0.008,
"txSize": 545,
"feeRate": 1,
"nftValue": 546,
"discounts": [],
"inscriptionCount": 0,
"availableBalance": 119772,
"allBalance": 119772
}
}

hello, any questions about Unisat API, please send to email contact@unisat.io @Vidhan123