without insufficient funds for rent
yuanshanhshan opened this issue · comments
When Execute sale code ,have error: "SendTransactionError: failed to send transaction: Transaction simulation failed: Transaction results in an account (10) without insufficient funds for rent"
Aution House
8qfyrvPrvjaa4mv3h5NvQoBaivzEEnX24PgJdVt7Sibf
and fee acount have sol, i do not what's happend ,Who can help me ,
Thank You Very Much!
async function executeSaleAsset(): Promise {
const mx = Metaplex.make(connection).use(keypairIdentity(test002SecreKey));
const ah = await findAH('8qfyrvPrvjaa4mv3h5NvQoBaivzEEnX24PgJdVt7Sibf');
const listing = await mx.auctionHouse().findListingByReceipt({
receiptAddress: new PublicKey(
'5fqemmHDwRjCwFMsgSno43GukdGhuMQ3iqVXnvfRGedV',
),
auctionHouse: ah,
});
console.log(Listing Info: ${JSON.stringify(listing)}
);
const biding = await mx.auctionHouse().findBidByReceipt({
receiptAddress: new PublicKey(
'8MSWErHUDAKkxjqzMcKvecNi18rppLAGSE4G7YvLfvRG',
),
auctionHouse: ah,
});
console.log(bid info: ${JSON.stringify(biding)}
);
const executeSaleResponse = await mx.auctionHouse().executeSale(
{
auctionHouse: ah,
listing: listing,
bid: biding,
printReceipt: true,
},
{
payer: mx.rpc().getDefaultFeePayer(),
},
);
console.log(Execute Sale Response: ${JSON.stringify(executeSaleAsset)}
);
return executeSaleResponse;
}
I must say that the error in Metaplex's program is a stupid description.
I have always thought that the reason for the error in the above question is due to the lack of expense account.
The final problem is the cost of data storage, that is, the bid is too low, if you set 1sol or higher, you can certainly succeed.