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的任意交易功能来:
- 授权USDC给Endaoment OrgFundFactory合约
- 调用方法,该方法会:
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 |
| North Shore Animal League America | 11-1666852 |
| American Red Cross | 53-0196605 |
| Doctors Without Borders | 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编码
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网络;其他链需要使用不同的合约地址