Skip to content

Kukks/NHodlHodl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHodlHodl

A C# library to use the HodlHodl, a no KYC p2p Bitcoin trading platform.

usage

  • Install NHodlHodl
  • Instantiate an instance of HodlHodlClient, using your API key
  • Call the endpoints as needed. You can find a detailed description of each endpoint at https://hodlhodl.com/api/docs
  • Some endpoints require a signed request, as described at https://hodlhodl.com/api/docs#signed-request. This is achievable by getting the signature key from your account and calling the following code:
    var (nonce, hash) = HodlHodlClient.GenerateSigningHash("api key here", "signature key here");
  • The seed that contains your hodlhodl private keys is encrypted with a password.
    //decrypt the master key
    var masterKey = HodlHodlClient.DecryptSeed(encryptedSeed, paymentPassword, out var decryptedSeed);
    //derive a key used for a specific contract
    var key = masterKey.Derive(derivationIndex).PrivateKey;
  • You can verify the multsig address used in a contract is correct with the following code:
    var (address, redeem) = HodlHodlClient.GenerateEscrowAddress(server, seller, buyer, Network.TestNet);

About

C# client api for HodlHodl no kyc bitcoin trades

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages