endaoment

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Endaoment 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 5
bash
./scripts/donate.sh <ein> <amount_usdc>
示例:向GiveDirectly捐赠5 USDC:
bash
./scripts/donate.sh 27-1661997 5

How It Works

工作原理

The donate script uses Bankr's arbitrary transaction feature to:
  1. Approve USDC to the Endaoment OrgFundFactory
  2. Call
    deployOrgAndDonate(orgId, amount)
    which:
    • Deploys the charity's entity contract on Base (if not already deployed)
    • Donates the specified USDC amount
捐赠脚本使用Bankr的任意交易功能来:
  1. 授权USDC给Endaoment OrgFundFactory合约
  2. 调用
    deployOrgAndDonate(orgId, amount)
    方法,该方法会:
    • 在Base网络部署该慈善机构的实体合约(如果尚未部署)
    • 捐赠指定金额的USDC

Popular Charities

热门慈善机构

CharityEIN
GiveDirectly27-1661997
North Shore Animal League America11-1666852
American Red Cross53-0196605
Doctors Without Borders13-3433452
ASPCA13-1623829
See
references/popular-charities.md
for more.
慈善机构EIN
GiveDirectly27-1661997
North Shore Animal League America11-1666852
American Red Cross53-0196605
Doctors Without Borders13-3433452
ASPCA13-1623829
更多内容请查看
references/popular-charities.md

Contract Addresses (Base)

合约地址(Base网络)

ContractAddress
Registry
0x237b53bcfbd3a114b549dfec96a9856808f45c94
OrgFundFactory
0x10fd9348136dcea154f752fe0b6db45fc298a589
USDC
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
合约地址
Registry
0x237b53bcfbd3a114b549dfec96a9856808f45c94
OrgFundFactory
0x10fd9348136dcea154f752fe0b6db45fc298a589
USDC
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913

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" → 0x31312d3136363638353200000000000000000000000000000000000000000000
EIN(例如"11-1666852")会被编码为bytes32格式:
"11-1666852" → 0x31312d3136363638353200000000000000000000000000000000000000000000

Notes

注意事项

  • 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网络;其他链需要使用不同的合约地址