Neynar Documentation

Send fungibles

API Request

cURL

curl --request POST \
  --url https://api.neynar.com/v2/farcaster/fungible/send/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: NEYNAR_API_DOCS' \
  --header 'x-wallet-id: <x-wallet-id>' \
  --data '
{
  "recipients": [
    {
      "amount": 1.00000001,
      "fid": 3
    }
  ],
  "fungible_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
}
'

Python Example

import requests

url = "https://api.neynar.com/v2/farcaster/fungible/send/"

payload = {
    "recipients": [
        {
            "amount": 1.00000001,
            "fid": 3
        }
    ],
    "fungible_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
}
headers = {
    "x-wallet-id": "<x-wallet-id>",
    "x-api-key": "NEYNAR_API_DOCS",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

JavaScript Fetch Example

const options = {
  method: 'POST',
  headers: {
    'x-wallet-id': '<x-wallet-id>',
    'x-api-key': 'NEYNAR_API_DOCS',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    recipients: [{amount: 1.00000001, fid: 3}],
    fungible_contract_address: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'
  })
};

fetch('https://api.neynar.com/v2/farcaster/fungible/send/', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Response Example

{
  "send_receipts": [
    {
      "amount": 123,
      "fid": 3,
      "reason": "<string>"
    }
  ],
  "transactions": [
    {
      "approval_hash": "<string>",
      "gas_used": "<string>",
      "transaction_hash": "<string>"
    }
  ]
}

Error Handling

Error: Missing Wallet ID

{
  "code": "RequiredField",
  "message": "x-wallet-id header is required"
}

Best Practices

Supported Networks

Network Token Standard Native Token
Base ERC-20 ETH
Optimism ERC-20 ETH
Base Sepolia ERC-20 (testnet) ETH
Solana SPL SOL