Technical Overview
Integrations

Funding Interfaces

2min

Developers can build their own interface and connect it to Treejer protocol in a permission-less way. Only a front-end interface is required. In Treejer protocol, the RegularSale smart contract manages tree funding.

Smart Contract Functions

fundTree

Solidity


You can fund tree with this function. For every count one NFT Tree is minted for recipient's address.

Parameters:

fundTree parameters





Name

Type

Description

_count

uint256

count of trees to fund

_referrer

address

if set, referrer count increases

_recipient

address

If set, trees are minted for this address instead of the function caller. (this is used to send tree as gift)