Knowledge Base | Treejer

Visit AppAsk QuestionsDiscordGitHub
⌘K
What is Treejer?
Who plants the trees?
What is the price of trees?
Who has invested in Treejer?
Fund Trees via Treejer
Regular Trees
Special Collections
Impact Referral Program
Plant Trees via Treejer
Ranger App
Allocation of Funds
Planters
Rural Ambassadors
Local Development Fund
Tree Rescue Fund
Tree Research Fund
Treasury
Technical Overview
Smart Contracts
Integrations
Security & Audits
Bug Bounty Program 🌳
Changelog
Community
Project Charter
Contribution Guideline
Legal
Privacy Policy
Terms of Service
Cookie Policy
Docs powered by
Archbee
Technical Overview
Integrations

Funding Interfaces

3min

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
|
function fundTree(
    uint256 _count,
    address _referrer,
    address _recipient
) external;


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)



Updated 03 Mar 2023
Did this page help you?
PREVIOUS
Integrations
NEXT
Redeemable Trees API
Docs powered by
Archbee
TABLE OF CONTENTS
Smart Contract Functions
fundTree
Docs powered by
Archbee