Configure where and how a Money Account receives payments. Set the preferred blockchain and token for settlements to optimize for speed, cost, or user preference.
Authentication
Basic authentication. Value: Basic base64(STABLEYARD_APP_ID:STABLEYARD_APP_SECRET). Obtain your credentials from the Stableyard SDK.
Body Parameters
Money Account’s unique identifier
Preferred chain ID for receiving settlements (e.g., 8453 for Base, 137 for Polygon)
Preferred token for settlements (e.g., “USDC”, “USDT”)
Response
Indicates if the request was successful
Updated preferred chain ID
curl -X POST https://api.stableyard.fi/sdk/v1/update-preferences \
-H "Authorization: Basic $( echo -n $STABLEYARD_APP_ID : $STABLEYARD_APP_SECRET | base64 )" \
-H "Content-Type: application/json" \
-d '{
"userId": "user_abc123",
"preferredSettlementChain": 8453,
"preferredSettlementToken": "USDC"
}'
200
400 Bad Request
404 Not Found
{
"success" : true ,
"message" : "Preferences updated successfully" ,
"data" : {
"userId" : "user_abc123" ,
"preferredSettlementChain" : 8453 ,
"preferredSettlementToken" : "USDC"
},
"requestId" : "req_xyz789"
}
Supported Chains
Chain Chain ID Ethereum 1 Base 8453 Polygon 137 Arbitrum 42161 Optimism 10
Optimizing for gas costs — Base (8453) and Polygon (137) typically have lower transaction fees, making them ideal default choices for frequent, smaller settlements.