Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 2.16 KB

CryptoWithdrawalsAPI.md

File metadata and controls

75 lines (46 loc) · 2.16 KB

\CryptoWithdrawalsAPI

All URIs are relative to https://api.paxos.com/v2

Method HTTP request Description
CreateCryptoWithdrawal Post /transfer/crypto-withdrawals Create Crypto Withdrawal

CreateCryptoWithdrawal

Transfer CreateCryptoWithdrawal(ctx).CreateCryptoWithdrawalRequest(createCryptoWithdrawalRequest).Execute()

Create Crypto Withdrawal

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/avianlabs/paxos-go"
)

func main() {
	createCryptoWithdrawalRequest := *openapiclient.NewCreateCryptoWithdrawalRequest("ProfileId_example", "DestinationAddress_example", "Asset_example", openapiclient.CryptoNetwork("BITCOIN")) // CreateCryptoWithdrawalRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.CryptoWithdrawalsAPI.CreateCryptoWithdrawal(context.Background()).CreateCryptoWithdrawalRequest(createCryptoWithdrawalRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `CryptoWithdrawalsAPI.CreateCryptoWithdrawal``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateCryptoWithdrawal`: Transfer
	fmt.Fprintf(os.Stdout, "Response from `CryptoWithdrawalsAPI.CreateCryptoWithdrawal`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateCryptoWithdrawalRequest struct via the builder pattern

Name Type Description Notes
createCryptoWithdrawalRequest CreateCryptoWithdrawalRequest

Return type

Transfer

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]