Assets Buying

Workflow for assets buying.

  1. Prepare buying

post

Prepare buy

Path parameters
marketanyRequired

"token"|"collection|"realm"

Body
bidIdsstring[]Required
buyerstringRequired
gasRateany ofRequired
string · numericOptionalDefault: 0
or
numberOptional
isExpressBuybooleanOptional
receiverstringOptional
Responses
200Success
post
/market/v1/{market}/bulk-buy
200Success
  1. Client sign psbt from last step's response

const signedPsbt = await unisat.signPsbt(psbt, {
	autoFinalized: false
})
  1. Confirm buying psbt in the post body is last step's signedPsbt

post

Confirm listing

Body
psbtstringRequired

Signed psbt

bidIdsstring[]Required
Responses
200Success
post
/market/v1/bid/bulk-confirm
200Success

Last updated