Skip to content

Create a Wallet

Creating a wallet is the first step to interacting with blockchain functionality in FSCO. This guide will walk you through the process of creating a wallet using our API.

Before you begin, ensure you have:

  • A valid FSCO API key
  • Your application’s environment configured with the API key
POST /v2/wallet
{
"name": "Your Wallet Name",
"custodian": "fsco"
}

The request requires two parameters:

  • name: A descriptive name for your wallet
  • custodian: The custody provider for your wallet
    • "fsco": Default option, managed by FSCO
    • "dfns": External custody through DFNS (requires additional setup)
create-wallet.sh
curl -X POST https://api.fsco.io/v2/wallet \
-H "Authorization: Bearer $FSCO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Your Wallet Name",
"custodian": "fsco"
}'
response.json
{
"walletId": "8c1d496f-2827-4750-a11f-74b48c11108d",
"name": "My Wallet",
"custodian": "fsco",
"address": "0x1234567890abcdef"
}

After creating a wallet, you can retrieve its details using the wallet ID:

get-wallet.sh
curl -X GET https://api.fsco.io/v2/wallet/123e4567-e89b-12d3-a456-426614174000 \
-H "Authorization: Bearer $FSCO_API_KEY" \
-H "Content-Type: application/json"
response.json
{
"walletId": "8c1d496f-2827-4750-a11f-74b48c11108d",
"name": "My Wallet",
"custodian": "fsco",
"address": "0x1234567890abcdef"
}
  • Store the walletId securely - you’ll need it for all future wallet operations
  • The wallet address works across all supported EVM chains
  • FSCO-native custody ("fsco") is recommended for most use cases
  • If using DFNS custody, ensure it’s configured in your FSCO dashboard first