Skip to content

Build the 2-msg contribute tx. Pipe to bb deploy — single tx, two transfers inside it (mint token-1 to contributor + mint token-2 to crowdfunder), each fired…

buildContributeCrowdfundTx(creator, collectionId, details, amount): object

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

Build the 2-msg contribute tx. Pipe to bb deploy — single tx, two transfers inside it (mint token-1 to contributor + mint token-2 to crowdfunder), each fired via its own deposit approval.

Parameters

creator

string

collectionId

string

details

CrowdfundDetails

amount

bigint

Returns

object

messages

messages: [MsgEnvelope]

Edit this page on GitHub