import { createRaribleSdk } from "@rarible/sdk" import { toItemId } from "@rarible/types" import type { BlockchainWallet } from "@rarible/sdk-wallet" import type { RequestCurrency } from "@rarible/sdk/build/common/domain" export async function bid(wallet: BlockchainWallet, assetType: RequestCurrency) { const sdk = createRaribleSdk(wallet, "testnet") const bidAction = await sdk.order.bid({ itemId: toItemId(""), }) const bidOrderId = await bidAction.submit({ amount: 1, price: "0.000002", currency: assetType, }) return bidOrderId }