XendBridge
  • Get Started
  • 🛠️API Method Calls
    • Third Party Order Operations
      • Rate
      • Buy Order
      • Sell Order
      • Swap Order
      • Pending Order
      • Pay For Order
      • Cancel Order
    • LP Simulation
      • Pay For Order (Buy Order)
      • Pay For Order (Sell Order)
    • Dispute
      • Raise Third Party Dispute
      • Get All Disputes
      • XendBridge Chat SDK
    • Payment Inquiry
    • WebHooks
      • Order Payment Confirmation
      • Order Matched Notification
      • Order Canceled Notification
      • Checksum Verification
  • 📄XENDBRIDGE PORTAL
    • Checkout URL
      • Buy Order
      • Sell Order
      • Swap Order
      • Rate
      • Rate Bounds
      • Initiate Order Created With Deferred Payment Method
      • Supported Currencies
      • Payment Methods
    • Inline Html Snippet
    • DeFi Checkout
  • 📦XENDBRIDGE SDKS
    • XendBridge NodeJs SDK
    • XendBridge .NET SDK
      • Rate
      • Buy Order
      • Sell Order
      • Swap Order
      • Pending Order
      • Pay For Order Confirmation
      • Cancel Order
      • Raise A Dispute
  • Errors
  • 🔖REFERENCE
    • API Reference
Powered by GitBook
On this page

Was this helpful?

  1. XENDBRIDGE SDKS

XendBridge .NET SDK

PreviousXendBridge NodeJs SDKNextRate

Last updated 2 years ago

Was this helpful?

Xendbridge provides a .NET SDK which can be integrated by downloading from the Nugget Package Manager on or from the .

Installation

The .NET SDK can be integrated by downloading from the Nugget Package Manager on or from the .

Setup

Firstly, in your appsettings.json file, you'd need to add the following JSON object and properties and populate them with the necessary values considering the environments of your choice. See and to get your keys and urls.

"XendBridgeSDKConfig": {
    "BaseUrl": "https://canary.xendbridge.com",
    "PublicKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "SecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXX"
  }

Secondly, add or bind the config settings to your project by injecting it into your services using the following code snippet;

public static IServiceCollection ConfigureAppSettingsBinding(this IServiceCollection services, IConfiguration Configuration)
{
  //Your other registered services can be here
  services.RegisterXendBridgeSDKConfig(Configuration);
  
  return services;
}

Lastly, you'd need to register the SDK as a service in the services using the code snippet below;

public static IServiceCollection RegisterServices(this IServiceCollection services)
{
  services.AddXendBridgeSDK();
}

Method Calls

After adding the above, the following functions, objects, and params are provided for the following method calls below.

📦
Rate
Buy Order
Sell Order
Swap Order
Pending Order
Pay For Order Confirmation
Cancel Order
Raise Dispute
setup
Visual Studio
website
Visual Studio
website
Get Your Secret and Public Keys
Environments