endaoment
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEndaoment Charity Donations
Endaoment慈善捐赠
Donate to 501(c)(3) nonprofits onchain via Endaoment's smart contracts.
通过Endaoment的智能合约链上向501(c)(3)非营利组织捐款。
Quick Start
快速开始
Find a Charity
查找慈善机构
Search by name or EIN:
bash
./scripts/search.sh "27-1661997" # EIN lookup (GiveDirectly)
./scripts/search.sh "Red Cross" # Name search可按名称或EIN搜索:
bash
./scripts/search.sh "27-1661997" # EIN查询(GiveDirectly)
./scripts/search.sh "Red Cross" # 按名称搜索Donate USDC (Base)
捐赠USDC(Base链)
bash
./scripts/donate.sh <ein> <amount_usdc>Example: Donate $5 USDC to GiveDirectly:
bash
./scripts/donate.sh 27-1661997 5bash
./scripts/donate.sh <ein> <amount_usdc>示例:向GiveDirectly捐赠5美元等值的USDC:
bash
./scripts/donate.sh 27-1661997 5How It Works
工作原理
The donate script uses Bankr's arbitrary transaction feature to:
- Approve USDC to the Endaoment OrgFundFactory
- Call which:
deployOrgAndDonate(orgId, amount)- Deploys the charity's entity contract on Base (if not already deployed)
- Donates the specified USDC amount
捐赠脚本调用Bankr的任意交易功能完成以下操作:
- 向Endaoment OrgFundFactory授权USDC额度
- 调用方法,该方法会:
deployOrgAndDonate(orgId, amount)- 如果该慈善机构的实体合约尚未在Base链部署,则先完成部署
- 捐赠指定数量的USDC
Popular Charities
热门慈善机构
| Charity | EIN |
|---|---|
| GiveDirectly | 27-1661997 |
| North Shore Animal League America | 11-1666852 |
| American Red Cross | 53-0196605 |
| Doctors Without Borders | 13-3433452 |
| ASPCA | 13-1623829 |
See for more.
references/popular-charities.md| 慈善机构 | EIN |
|---|---|
| GiveDirectly | 27-1661997 |
| 北岸动物联盟美国分会 | 11-1666852 |
| 美国红十字会 | 53-0196605 |
| 无国界医生 | 13-3433452 |
| ASPCA | 13-1623829 |
更多内容可查看文件。
references/popular-charities.mdContract Addresses (Base)
合约地址(Base链)
| Contract | Address |
|---|---|
| Registry | |
| OrgFundFactory | |
| USDC | |
| 合约 | 地址 |
|---|---|
| Registry | |
| OrgFundFactory | |
| USDC | |
Fees
费用
- Org donations: 1.5% fee (e.g., $100 → $1.50 fee, $98.50 to charity)
- Fund donations: 0.05-0.50% tiered
- 机构捐赠:收取1.5%的手续费(例如捐赠100美元,手续费1.5美元,98.5美元将交付给慈善机构)
- 基金捐赠:0.05-0.50%的阶梯费率
Requirements
使用要求
- Bankr skill with API key configured
- USDC balance on Base
- ETH on Base for gas (Bankr covers this)
- 已配置API密钥的Bankr skill
- Base链上有USDC余额
- Base链上有用于支付Gas的ETH(Bankr会承担该费用)
Technical Details
技术细节
Function Selectors
函数选择器
- :
approve(address,uint256)0x095ea7b3 - :
deployOrgAndDonate(bytes32,uint256)0xdb9e30cc
- :
approve(address,uint256)0x095ea7b3 - :
deployOrgAndDonate(bytes32,uint256)0xdb9e30cc
OrgId Encoding
OrgId Encoding
The EIN (e.g., "11-1666852") is encoded as bytes32:
"11-1666852" → 0x31312d3136363638353200000000000000000000000000000000000000000000EIN(例如"11-1666852")会被编码为bytes32格式:
"11-1666852" → 0x31312d3136363638353200000000000000000000000000000000000000000000Notes
注意事项
- All donations are tax-deductible (US 501(c)(3) orgs)
- Donations are permissionless — anyone can donate
- Uses Bankr arbitrary transactions for contract interaction
- Works on Base; other chains require different addresses
- 所有捐款均可抵税(针对美国501(c)(3)组织)
- 捐赠无需许可,任何人都可以进行捐赠
- 使用Bankr任意交易功能完成合约交互
- 当前仅支持Base链,其他链需要使用对应的不同合约地址