Skip to content

Build the crowdfunder-side withdraw tx (only callable when goal met). Fires the success approval to drain escrow + burns the crowdfunder's accumulated progress…

buildWithdrawCrowdfundTx(creator, collectionId, details, raised, burnApprovalId?): object

Defined in: packages/bitbadgesjs-sdk/src/core/crowdfunds.ts:307

Build the crowdfunder-side withdraw tx (only callable when goal met). Fires the success approval to drain escrow + burns the crowdfunder's accumulated progress tokens. 2-msg.

Parameters

creator

string

collectionId

string

details

CrowdfundDetails

raised

bigint

burnApprovalId?

string

Returns

object

messages

messages: MsgEnvelope[]

Edit this page on GitHub