Supported TypesCurrently, this endpoint can be used only to create vault wallets and onchain wallets that do not require key generation. The first EVM and first Solana onchain wallet in a portfolio must be created prior to creating subsequent EVM or Solana wallets in a portfolio via API.
Use the Prime SDK or CLI to test this endpoint by following the quickstart guide and running with the following examples
Java
.NET
Go
Python
CLI
TS/JS
WalletsService walletsService = PrimeServiceFactory.createWalletsService(client);
CreateWalletRequest request = new CreateWalletRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.type(WalletType.VAULT)
.name("PRIME_API_EXAMPLE")
.symbol("ETH")
.build();
CreateWalletResponse response = walletsService.createWallet(request);
For more information, please visit the Prime Java SDK.var walletsService = new WalletsService(client);
var request = new CreateWalletRequest("PORTFOLIO_ID_HERE")
{
Type = WalletType.VAULT,
Name = "PRIME_API_EXAMPLE",
Symbol = "ETH",
}
var response = walletsService.CreateWallet(request);
For more information, please visit the Prime .NET SDK.walletsService := users.NewWalletsService(client)
request := &users.CreateWalletRequest{
PortfolioId: "PORTFOLIO_ID_HERE",
Type: "VAULT",
Name: "PRIME_API_EXAMPLE",
Symbol: "ETH",
}
response, err := walletsService.CreateWallet(context.Background(), request)
For more information, please visit the Prime Go SDK.prime_client = PrimeClient(credentials)
request = CreateWalletRequest(
portfolio_id="PORTFOLIO_ID_HERE",
name="PRIME_API_EXAMPLE",
symbol="ETH",
wallet_type="VAULT",
)
response = prime_client.create_wallet(request)
For more information, please visit the Prime Python SDK.primectl create-wallet --help
For more information, please visit the Prime CLI.const walletsService = new WalletsService(client);
walletsService.getWalletDepositInstructions({
portfolioId: 'PORTFOLIO_ID_HERE',
type: WalletType.VAULT,
name: "PRIME_API_EXAMPLE",
symbol: "ETH",
}).then(async (response) => {
console.log('Wallet: ', response);
})
For more information, please visit the Prime TS SDK.