- Java
- .NET
- Go
- Python
- CLI
- TS/JS
Copy
Ask AI
TransactionsService transactionsService = PrimeServiceFactory.createTransactionsService(client);
CreateWithdrawalRequest request = new CreateWithdrawalRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.walletId("WALLET_ID_HERE")
.amount("0.001")
.destinationType(DestinationType.DESTINATION_BLOCKCHAIN)
.idempotencyKey(UUID.randomUUID().toString())
.currencySymbol("ETH")
.blockchainAddress(new BlockchainAddress.Builder()
.address("DESTINATION_WALLET_ADDRESS")
.build())
.build();
CreateWithdrawalResponse response = transactionsService.createWithdrawal(request);
Copy
Ask AI
var transactionsService = new TransactionsService(client);
var request = new CreateWithdrawalRequest("PORTFOLIO_ID_HERE", "WALLET_ID_HERE")
{
Amount = "0.001",
DestinationType = DestinationType.DESTINATION_BLOCKCHAIN,
IdempotencyKey = Guid.NewGuid().ToString(),
CurrencySymbol = "ETH",
BlockchainAddress = new BlockchainAddress
{
Address = "DESTINATION_WALLET_ADDRESS",
},
};
var response = transactionsService.CreateWithdrawal(request);
Copy
Ask AI
transactionsService := transactions.NewTransactionsService(client)
request := &transactions.CreateWalletWithdrawalRequest{
PortfolioId: "PORTFOLIO_ID_HERE",
WalletId: "WALLET_ID_HERE",
Amount: "0.001",
DestinationType: "DESTINATION_BLOCKCHAIN",
IdempotencyKey: uuid.New().String(),
Symbol: "ETH",
BlockchainAddress: &transactions.BlockchainAddress{
Address: "DESTINATION_WALLET_ADDRESS",
},
}
response, err := transactionsService.CreateWalletWithdrawal(context.Background(), request)
Copy
Ask AI
prime_client = PrimeClient(credentials)
request = CreateWithdrawalRequest(
portfolio_id="PORTFOLIO_ID_HERE",
wallet_id="WALLET_ID_HERE",
amount = '0.001',
destination_type = 'DESTINATION_BLOCKCHAIN',
idempotency_key = str(uuid.uuid4()),
currency_symbol = 'ETH',
blockchain_address = BlockchainAddress(
address='DESTINATION_WALLET_ADDRESS',
),
)
response = prime_client.create_withdrawal(request)
Copy
Ask AI
primectl create-withdrawal --help
Copy
Ask AI
const transactionsService = new TransactionsService(client);
transactionsService.createWithdrawal({
portfolioId: 'PORTFOLIO_ID_HERE',
walletId: 'WALLET_ID_HERE',
amount: "0.001",
idempotencyKey: uuidv4(),
currencySymbol: "ETH",
destinationType: DestinationType.DestinationBlockchain,
blockchainAddress: {
address: 'DESTINATION_WALLET_ADDRESS',
}
}).then(async (response) => {
console.log('Withdrawal: ', response);
})