Overview
To create Fern wallets for your customers, customers need to be created via the Customers API. Your end customer does not need to beACTIVE (approved) in order to have an active Fern wallet. As soon as the customer has been created and you have the customer’s ID, you can use this to create a Fern wallet on the relevant chain(s).
Step-by-step guide
1
Create your customer
Create a customer using the Customers API. Specify customer type, name, and email address. A successful request will return a response that includes the
customerId.2
Create Fern wallet for the customer
Fern wallets can be created using the Payment accounts API. Specify
paymentAccountType as FERN_CRYPTO_WALLET and include the customerId in the request. Because you are creating a Fern crypto wallet, you also need to send the fernCryptoWallet object with cryptoWalletType. Today, Fern only supports EVM wallets for creation, so the correct cryptoWalletType will be EVM. This will create a Fern crypto wallet that has the same address on all supported EVM chains.Request Structure
Endpoint:POST /v1/payment-accountsRequired Fields:paymentAccountType: Must be"FERN_CRYPTO_WALLET"customerId: UUID of the customerfernCryptoWallet.cryptoWalletType: Currently only"EVM"supported
nickname: Friendly name for the walletorganizationId: Defaults to authenticated organization
Response Structure
Success Response (201 Created):Key Response Fields:paymentAccountId: Unique identifier for API operationspaymentAccountStatus: Always"ACTIVE"for Fern walletsfernCryptoWallet.address: Blockchain address (same on all EVM chains)fernCryptoWallet.cryptoWalletType: Wallet type ("EVM")isThirdParty: Alwaysfalse(Fern managed)
3
Fern crypto wallet is now live
This wallet can now be used as the destination for onramps, or a source for offramps. If you plan to use this wallet to interact with other Fern APIs, keep track of the returned
paymentAccountId .