Package: tucha-test-new-package
Greencryptopay library for Node.jsThe Greencryptopay library for Node.js allows you to easily integrate the Greencryptopay payment system into your Node.js projects. This library provides convenient methods for interacting with the Greencryptopay API.InstallationYou can install this package using npm:npminstallgreencryptopay-nodejs--saveDependenciesThis package depends on the "node-fetch" library version ^2.6. If it's not already installed, it will be automatically installed when you install this library.Standard APIStandard APIGetting Started:fromtucha_test_new_packageimportApi# Standard APIstandard_api=Api.standard()# Standard API testnetstandard_api=Api.standard(True)# Sign upifnotmerchant_idornotsecret_key:data=standard_api.merchant('percent','https://example.com/callback')merchant_id=data['merchant_id']secret_key=data['secret_key']standard_api.set_merchant_id(merchant_id)standard_api.set_secret_key(secret_key)Sign up:NameParametersValidationDescriptionmerchantstring feeTypestring callbackUrlEnum: [percent, fix]Max: 200Fee typeURL to send notifications about paymentsOperations:NameParametersValidationDescriptionpaymentAddressstring currencystring callbackUrlstring orderIdstring currencyFromstring amountFromEnum: [btc]Max: 200Max: 50Enum: [usd]вЂ”CurrencyURL to send notifications about paymentsOrder identifier in your systemCurrency to convert fromAmount to convertwithdrawstring currencyarray recipientsEnum: [btc]вЂ”CurrencyArray structure:  [['address' => 'Recipient address', 'amount' => 'Recipient's amount']]withdrawAllstring currencystring recipientAddressEnum: [btc]вЂ”CurrencyRecipient addressStats:NameParametersValidationDescriptionmerchantStatestring currencyEnum: [btc]CurrencymerchantPaymentAddressstring currencystring / none fromTimestampstring / none toTimestampint / none limitint / none pagestring / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyAddress creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchantIncomingPaymentsstring currencystring / none paymentAddressstring / none txidstring / none fromTimestampstring / none toTimestampint / none limitint / none pagestring / none orderEnum: [btc]вЂ”вЂ”Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyShow only payments to specific payment addressShow only payments with specific transactionPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchantWithdrawalsstring currencystring / none fromTimestampstring / none toTimestampint / none limitint / none pagestring / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyWithdrawal timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Withdrawal timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpaymentAddressCallbacksstring currencystring paymentAddressstring / none txidstring / none fromTimestampstring / none toTimestampint  / none limitint  / none pagestring / none orderEnum: [btc]вЂ”вЂ”Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only payment callbacks with specific transactionCallback timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Callback timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpaymentAddressStatestring currencystring paymentAddressEnum: [btc]вЂ”CurrencyPayment addressTransfer APITransfer APIGetting Started:fromtucha_test_new_packageimportApi# Transfer APItransfer_api=Api.transfer()# Transfer API testnettransfer_api=Api.transfer(True)# Sign upifnotmerchant_idornotsecret_key:data=transfer_api.merchant('percent','https://example.com/callback')merchant_id=data['merchant_id']secret_key=data['secret_key']transfer_api.set_merchant_id(merchant_id)transfer_api.set_secret_key(secret_key)Sign up:NameParametersValidationDescriptionmerchantstring feeTypestring callbackUrlEnum: [percent, fix]Max: 200Fee typeURL to send notifications about paymentsOperations:NameParametersValidationDescriptionpaymentAddressstring currencystring recipientAddressstring feeTypestring callbackUrlstring orderIdstring currencyFromstring amountFromEnum: [btc]вЂ”Enum: [percent, fix]Max:200Max:50Enum: [usd, rub, try, eur, zar, gbp, uah, aud, brl, pln]вЂ”CurrencyRecipient addressFee typeURL to send notifications about paymentsOrder identifier in your systemCurrency to convert fromAmount to convertStats:NameParametersValidationDescriptionpaymentAddressStatestring currencystring paymentAddressEnum: [btc]вЂ”CurrencyShow only payments to specific payment addresspaymentAddressPaymentsstring currencystring paymentAddressstring / none txidstring / none fromTimestampstring / none toTimestampint  / none limitint  / none pagestring / none orderEnum: [btc]вЂ”вЂ”Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only specific transaction paymentsPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingpaymentAddressCallbacksstring currencystring paymentAddressstring / none txidstring / none fromTimestampstring / none toTimestampint  / none limitint  / none pagestring / none orderEnum: [btc]вЂ”вЂ”Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyPayment addressShow only payment callbacks with specific transactionPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchantStatestring currencyEnum: [btc]CurrencymerchantPaymentAddressstring currencystring / none fromTimestampstring / none toTimestampint / none limitint / none pagestring / none orderEnum: [btc]Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyAddress creation timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Address creation timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descendingmerchantPaymentsstring currencystring / none txidstring / none fromTimestampstring / none toTimestampint  / none limitint  / none pagestring / none orderEnum: [btc]вЂ”Timestamp in UTCTimestamp in UTCMin:1, Max:200Min:1Enum: [asc, desc]CurrencyShow only specific transaction paymentsPayment timestamp in UTC, from (inclusive, ex. "2035-12-31T15:30:59")Payment timestamp in UTC, to (inclusive, ex. "2035-12-31T15:30:59")Number of records in the responsePage numberRecords order ascending or descending