Requirements
- An ETH wallet that owns the account on OP Mainnet. No ETH is required.
Change username
To transfer an Fname, e.g.farcaster, make a POST request to /transfers with the following body:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
farcaster, make a POST request to /transfers with the following body:
{
"name": "farcaster", // Name to transfer
"from": 123, // FID to transfer from
"to": 321, // FID to transfer to
"fid": 123, // FID making the request (must match from)
"owner": "0x...", // Custody address of FID making the request
"timestamp": 1641234567, // Current timestamp in seconds
"signature": "0x..." // EIP-712 signature signed by the custody address of the FID
}
import { makeUserNameProofClaim, EIP712Signer } from '@farcaster/hub-nodejs';
const accountKey: EIP712Signer = undefined; // Account Key for the custody address (use appropriate subclass from hub-nodejs for ethers or viem)
const claim = makeUserNameProofClaim({
name: 'farcaster',
owner: '0x...',
timestamp: Math.floor(Date.now() / 1000),
});
const signature = (
await accountKey.signUserNameProofClaim(claim)
)._unsafeUnwrap();
curl -X POST https://fnames.farcaster.xyz/transfers \
-H "Content-Type: application/json" \
-d \
'{"name": "farcaster", "owner": "0x...", "signature": "0x...", "from": 123, "to": 321, "timestamp": 1641234567, "fid": 123}'
Related topics
UsernamesSDK v1 to v2 migration guideENS NamesFName Registry Server API ReferenceChange recovery addressWas this page helpful?