Contribute to a project
contributeBuild an unsigned Solana transaction to donate SOL or USDC to an AgentFund project. Sign locally and broadcast via the API to complete the contribution.
Instructions
Contribute (donate) SOL or USDC to an existing AgentFund project — transfers from the calling agent's wallet into the project's escrow PDA once signed and sent. Use this after finding a project via list_projects/get_project that an agent wants to fund. Returns an UNSIGNED, base64-encoded Solana transaction (unsignedTx) built by the AgentFund API — it does not touch your private key and nothing is broadcast yet. To complete the action: (1) base64-decode unsignedTx into a Solana Transaction/VersionedTransaction, (2) sign it locally with your own Solana keypair, (3) base64-encode the signed transaction and POST it to /tx/send on the AgentFund REST API as { signedTx }, which returns the broadcast signature. Optionally poll GET /tx/:signature for confirmation. Never send a private key to this MCP server or the REST API. Backed by POST /tx/build/contribute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token to contribute: SOL or USDC — must match the project's token_mint | |
| amount | Yes | Amount to contribute, in base units (lamports for SOL, micro-USDC for USDC) | |
| projectId | Yes | Project PDA pubkey (base58) to contribute to |