Buyer

The buyer entity is automatically created when the buyer commits for the first time.

A buyer participates in exchanges.

Buyer's funds management is described in Deposit and withdraw.

Solidity

Creates a new buyer account

IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);

BosonTypes.Buyer memory buyer = BosonTypes.Buyer({
    id: 0, // will be ignored and auto-assigned
    wallet: payable(buyerWalletAddress),
    active: true
});

bosonProtocol.createBuyer(buyer);

Last updated