crypto_apis 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -15
  3. data/docs/BroadcastLocallySignedTransactionR.md +24 -0
  4. data/docs/BroadcastLocallySignedTransactionRB.md +20 -0
  5. data/docs/BroadcastLocallySignedTransactionRBData.md +18 -0
  6. data/docs/BroadcastLocallySignedTransactionRBDataItem.md +22 -0
  7. data/docs/BroadcastLocallySignedTransactionRData.md +18 -0
  8. data/docs/BroadcastLocallySignedTransactionRI.md +18 -0
  9. data/docs/BroadcastTransactionFail.md +24 -0
  10. data/docs/BroadcastTransactionFailData.md +22 -0
  11. data/docs/BroadcastTransactionFailDataItem.md +24 -0
  12. data/docs/BroadcastTransactionSuccess.md +24 -0
  13. data/docs/BroadcastTransactionSuccessData.md +22 -0
  14. data/docs/BroadcastTransactionSuccessDataItem.md +22 -0
  15. data/docs/CreateCoinsTransactionRequestFromAddressRBDataItem.md +6 -2
  16. data/docs/CreateCoinsTransactionRequestFromAddressRI.md +4 -0
  17. data/docs/CreateCoinsTransactionRequestFromWalletRBDataItem.md +7 -3
  18. data/docs/{CreateCoinsTransactionRequestFromWalletRBDataItemDestinations.md → CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.md} +3 -3
  19. data/docs/CreateCoinsTransactionRequestFromWalletRI.md +4 -0
  20. data/docs/CreateTokensTransactionRequestFromAddressRBDataItem.md +6 -2
  21. data/docs/CreateTokensTransactionRequestFromAddressRI.md +4 -0
  22. data/docs/FeaturesApi.md +167 -0
  23. data/docs/{ListReceivingAddressesR.md → GenerateDepositAddressR.md} +3 -3
  24. data/docs/{GenerateReceivingAddressRB.md → GenerateDepositAddressRB.md} +3 -3
  25. data/docs/GenerateDepositAddressRBData.md +18 -0
  26. data/docs/{GenerateReceivingAddressRBDataItem.md → GenerateDepositAddressRBDataItem.md} +2 -2
  27. data/docs/GenerateDepositAddressRData.md +18 -0
  28. data/docs/{GenerateReceivingAddressRI.md → GenerateDepositAddressRI.md} +2 -2
  29. data/docs/GeneratingApi.md +16 -16
  30. data/docs/GetAddressDetailsRIConfirmedBalance.md +2 -2
  31. data/docs/GetAddressDetailsRITotalReceived.md +2 -2
  32. data/docs/GetAddressDetailsRITotalSpent.md +2 -2
  33. data/docs/GetBlockDetailsByBlockHashRIBS.md +2 -0
  34. data/docs/GetBlockDetailsByBlockHashRIBSBSC.md +36 -0
  35. data/docs/GetBlockDetailsByBlockHeightRIBS.md +2 -0
  36. data/docs/GetBlockDetailsByBlockHeightRIBSBSC.md +34 -0
  37. data/docs/GetLatestMinedBlockRIBS.md +2 -0
  38. data/docs/GetLatestMinedBlockRIBSBSC.md +34 -0
  39. data/docs/GetTransactionDetailsByTransactionIDRIBS.md +2 -0
  40. data/docs/GetTransactionDetailsByTransactionIDRIBSBSC.md +28 -0
  41. data/docs/GetTransactionDetailsByTransactionIDRIBSBSCGasPrice.md +20 -0
  42. data/docs/GetTransactionDetailsByTransactionIDRIFee.md +1 -1
  43. data/docs/InformativeApi.md +15 -15
  44. data/docs/{GenerateReceivingAddressR.md → ListDepositAddressesR.md} +3 -3
  45. data/docs/{ListReceivingAddressesRData.md → ListDepositAddressesRData.md} +3 -3
  46. data/docs/{ListReceivingAddressesRI.md → ListDepositAddressesRI.md} +2 -2
  47. data/docs/ListTransactionsByAddressRIBS.md +2 -0
  48. data/docs/ListTransactionsByAddressRIBSBSC.md +30 -0
  49. data/docs/ListTransactionsByBlockHashRIBS.md +2 -0
  50. data/docs/ListTransactionsByBlockHashRIBSBSC.md +30 -0
  51. data/docs/ListTransactionsByBlockHashRIFee.md +1 -1
  52. data/docs/ListTransactionsByBlockHeightRIBS.md +2 -0
  53. data/docs/ListTransactionsByBlockHeightRIBSBSC.md +28 -0
  54. data/docs/ListTransactionsByBlockHeightRIBSBSCGasPrice.md +20 -0
  55. data/docs/ListXRPRippleTransactionsByAddressRI.md +2 -4
  56. data/docs/TransactionRequestApproval.md +24 -0
  57. data/docs/TransactionRequestApprovalData.md +22 -0
  58. data/docs/TransactionRequestApprovalDataItem.md +28 -0
  59. data/docs/TransactionRequestBroadcasted.md +24 -0
  60. data/docs/TransactionRequestBroadcastedData.md +22 -0
  61. data/docs/TransactionRequestBroadcastedDataItem.md +30 -0
  62. data/docs/TransactionRequestFail.md +24 -0
  63. data/docs/TransactionRequestFailData.md +22 -0
  64. data/docs/TransactionRequestFailDataItem.md +30 -0
  65. data/docs/TransactionRequestMined.md +24 -0
  66. data/docs/TransactionRequestMinedData.md +22 -0
  67. data/docs/TransactionRequestRejection.md +24 -0
  68. data/docs/TransactionRequestRejectionData.md +22 -0
  69. data/docs/TransactionRequestRejectionDataItem.md +28 -0
  70. data/docs/TransactionsApi.md +10 -10
  71. data/docs/XRPRippleApi.md +3 -1
  72. data/lib/crypto_apis.rb +46 -11
  73. data/lib/crypto_apis/api/features_api.rb +194 -0
  74. data/lib/crypto_apis/api/generating_api.rb +17 -17
  75. data/lib/crypto_apis/api/informative_api.rb +18 -18
  76. data/lib/crypto_apis/api/transactions_api.rb +10 -10
  77. data/lib/crypto_apis/api/unified_endpoints_api.rb +7 -7
  78. data/lib/crypto_apis/api/xrp_ripple_api.rb +7 -0
  79. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r.rb +263 -0
  80. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r_data.rb +223 -0
  81. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb.rb +233 -0
  82. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data.rb +223 -0
  83. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data_item.rb +249 -0
  84. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_ri.rb +224 -0
  85. data/lib/crypto_apis/models/broadcast_transaction_fail.rb +268 -0
  86. data/lib/crypto_apis/models/broadcast_transaction_fail_data.rb +254 -0
  87. data/lib/crypto_apis/models/broadcast_transaction_fail_data_item.rb +270 -0
  88. data/lib/crypto_apis/models/broadcast_transaction_success.rb +268 -0
  89. data/lib/crypto_apis/models/broadcast_transaction_success_data.rb +254 -0
  90. data/lib/crypto_apis/models/broadcast_transaction_success_data_item.rb +255 -0
  91. data/lib/crypto_apis/models/create_coins_transaction_request_from_address_rb_data_item.rb +30 -10
  92. data/lib/crypto_apis/models/create_coins_transaction_request_from_address_ri.rb +21 -1
  93. data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item.rb +38 -18
  94. data/lib/crypto_apis/models/{create_coins_transaction_request_from_wallet_rb_data_item_destinations.rb → create_coins_transaction_request_from_wallet_rb_data_item_recipients.rb} +4 -4
  95. data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_ri.rb +21 -1
  96. data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_rb_data_item.rb +30 -10
  97. data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_ri.rb +31 -1
  98. data/lib/crypto_apis/models/{list_receiving_addresses_r.rb → generate_deposit_address_r.rb} +4 -4
  99. data/lib/crypto_apis/models/{generate_receiving_address_r_data.rb → generate_deposit_address_r_data.rb} +4 -4
  100. data/lib/crypto_apis/models/{generate_receiving_address_rb.rb → generate_deposit_address_rb.rb} +4 -4
  101. data/lib/crypto_apis/models/{generate_receiving_address_rb_data.rb → generate_deposit_address_rb_data.rb} +4 -4
  102. data/lib/crypto_apis/models/{generate_receiving_address_rb_data_item.rb → generate_deposit_address_rb_data_item.rb} +3 -3
  103. data/lib/crypto_apis/models/{list_receiving_addresses_ri.rb → generate_deposit_address_ri.rb} +3 -3
  104. data/lib/crypto_apis/models/get_address_details_ri_confirmed_balance.rb +0 -1
  105. data/lib/crypto_apis/models/get_address_details_ri_total_received.rb +0 -1
  106. data/lib/crypto_apis/models/get_address_details_ri_total_spent.rb +0 -1
  107. data/lib/crypto_apis/models/get_block_details_by_block_hash_ribs.rb +1 -0
  108. data/lib/crypto_apis/models/get_block_details_by_block_hash_ribsbsc.rb +361 -0
  109. data/lib/crypto_apis/models/get_block_details_by_block_height_ribs.rb +1 -0
  110. data/lib/crypto_apis/models/get_block_details_by_block_height_ribsbsc.rb +345 -0
  111. data/lib/crypto_apis/models/get_latest_mined_block_ribs.rb +1 -0
  112. data/lib/crypto_apis/models/get_latest_mined_block_ribsbsc.rb +345 -0
  113. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idri_fee.rb +0 -1
  114. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribs.rb +1 -0
  115. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc.rb +299 -0
  116. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc_gas_price.rb +238 -0
  117. data/lib/crypto_apis/models/{generate_receiving_address_r.rb → list_deposit_addresses_r.rb} +4 -4
  118. data/lib/crypto_apis/models/{list_receiving_addresses_r_data.rb → list_deposit_addresses_r_data.rb} +4 -4
  119. data/lib/crypto_apis/models/{generate_receiving_address_ri.rb → list_deposit_addresses_ri.rb} +3 -3
  120. data/lib/crypto_apis/models/list_transactions_by_address_ribs.rb +1 -0
  121. data/lib/crypto_apis/models/list_transactions_by_address_ribsbsc.rb +314 -0
  122. data/lib/crypto_apis/models/list_transactions_by_block_hash_ri_fee.rb +0 -1
  123. data/lib/crypto_apis/models/list_transactions_by_block_hash_ribs.rb +1 -0
  124. data/lib/crypto_apis/models/list_transactions_by_block_hash_ribsbsc.rb +314 -0
  125. data/lib/crypto_apis/models/list_transactions_by_block_height_ribs.rb +1 -0
  126. data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc.rb +299 -0
  127. data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc_gas_price.rb +238 -0
  128. data/lib/crypto_apis/models/list_xrp_ripple_transactions_by_address_ri.rb +1 -16
  129. data/lib/crypto_apis/models/transaction_request_approval.rb +268 -0
  130. data/lib/crypto_apis/models/transaction_request_approval_data.rb +254 -0
  131. data/lib/crypto_apis/models/transaction_request_approval_data_item.rb +300 -0
  132. data/lib/crypto_apis/models/transaction_request_broadcasted.rb +268 -0
  133. data/lib/crypto_apis/models/transaction_request_broadcasted_data.rb +254 -0
  134. data/lib/crypto_apis/models/transaction_request_broadcasted_data_item.rb +315 -0
  135. data/lib/crypto_apis/models/transaction_request_fail.rb +268 -0
  136. data/lib/crypto_apis/models/transaction_request_fail_data.rb +254 -0
  137. data/lib/crypto_apis/models/transaction_request_fail_data_item.rb +315 -0
  138. data/lib/crypto_apis/models/transaction_request_mined.rb +268 -0
  139. data/lib/crypto_apis/models/transaction_request_mined_data.rb +254 -0
  140. data/lib/crypto_apis/models/transaction_request_rejection.rb +268 -0
  141. data/lib/crypto_apis/models/transaction_request_rejection_data.rb +254 -0
  142. data/lib/crypto_apis/models/transaction_request_rejection_data_item.rb +300 -0
  143. data/lib/crypto_apis/version.rb +1 -1
  144. data/spec/api/{validating_api_spec.rb → features_api_spec.rb} +21 -6
  145. data/spec/api/generating_api_spec.rb +5 -5
  146. data/spec/api/informative_api_spec.rb +5 -5
  147. data/spec/api/transactions_api_spec.rb +1 -1
  148. data/spec/api/xrp_ripple_api_spec.rb +1 -0
  149. data/spec/models/broadcast_locally_signed_transaction_r_data_spec.rb +34 -0
  150. data/spec/models/broadcast_locally_signed_transaction_r_spec.rb +52 -0
  151. data/spec/models/broadcast_locally_signed_transaction_rb_data_item_spec.rb +46 -0
  152. data/spec/models/broadcast_locally_signed_transaction_rb_data_spec.rb +34 -0
  153. data/spec/models/broadcast_locally_signed_transaction_rb_spec.rb +40 -0
  154. data/spec/models/broadcast_locally_signed_transaction_ri_spec.rb +34 -0
  155. data/spec/models/broadcast_transaction_fail_data_item_spec.rb +52 -0
  156. data/spec/models/broadcast_transaction_fail_data_spec.rb +46 -0
  157. data/spec/models/broadcast_transaction_fail_spec.rb +52 -0
  158. data/spec/models/broadcast_transaction_success_data_item_spec.rb +46 -0
  159. data/spec/models/broadcast_transaction_success_data_spec.rb +46 -0
  160. data/spec/models/broadcast_transaction_success_spec.rb +52 -0
  161. data/spec/models/create_coins_transaction_request_from_address_rb_data_item_spec.rb +13 -1
  162. data/spec/models/create_coins_transaction_request_from_address_ri_spec.rb +12 -0
  163. data/spec/models/{create_coins_transaction_request_from_wallet_rb_data_item_destinations_spec.rb → create_coins_transaction_request_from_wallet_rb_data_item_recipients_spec.rb} +6 -6
  164. data/spec/models/create_coins_transaction_request_from_wallet_rb_data_item_spec.rb +13 -1
  165. data/spec/models/create_coins_transaction_request_from_wallet_ri_spec.rb +12 -0
  166. data/spec/models/create_tokens_transaction_request_from_address_rb_data_item_spec.rb +13 -1
  167. data/spec/models/create_tokens_transaction_request_from_address_ri_spec.rb +12 -0
  168. data/spec/models/{generate_receiving_address_r_data_spec.rb → generate_deposit_address_r_data_spec.rb} +6 -6
  169. data/spec/models/{list_receiving_addresses_r_spec.rb → generate_deposit_address_r_spec.rb} +6 -6
  170. data/spec/models/{generate_receiving_address_rb_data_item_spec.rb → generate_deposit_address_rb_data_item_spec.rb} +6 -6
  171. data/spec/models/{generate_receiving_address_rb_data_spec.rb → generate_deposit_address_rb_data_spec.rb} +6 -6
  172. data/spec/models/{generate_receiving_address_rb_spec.rb → generate_deposit_address_rb_spec.rb} +6 -6
  173. data/spec/models/{list_receiving_addresses_ri_spec.rb → generate_deposit_address_ri_spec.rb} +6 -6
  174. data/spec/models/get_block_details_by_block_hash_ribsbsc_spec.rb +88 -0
  175. data/spec/models/get_block_details_by_block_height_ribsbsc_spec.rb +82 -0
  176. data/spec/models/get_latest_mined_block_ribsbsc_spec.rb +82 -0
  177. data/spec/models/get_transaction_details_by_transaction_idribsbsc_gas_price_spec.rb +40 -0
  178. data/spec/models/get_transaction_details_by_transaction_idribsbsc_spec.rb +64 -0
  179. data/spec/models/{list_receiving_addresses_r_data_spec.rb → list_deposit_addresses_r_data_spec.rb} +6 -6
  180. data/spec/models/{generate_receiving_address_r_spec.rb → list_deposit_addresses_r_spec.rb} +6 -6
  181. data/spec/models/{generate_receiving_address_ri_spec.rb → list_deposit_addresses_ri_spec.rb} +6 -6
  182. data/spec/models/list_transactions_by_address_ribsbsc_spec.rb +70 -0
  183. data/spec/models/list_transactions_by_block_hash_ribsbsc_spec.rb +70 -0
  184. data/spec/models/list_transactions_by_block_height_ribsbsc_gas_price_spec.rb +40 -0
  185. data/spec/models/list_transactions_by_block_height_ribsbsc_spec.rb +64 -0
  186. data/spec/models/list_xrp_ripple_transactions_by_address_ri_spec.rb +0 -6
  187. data/spec/models/transaction_request_approval_data_item_spec.rb +64 -0
  188. data/spec/models/transaction_request_approval_data_spec.rb +46 -0
  189. data/spec/models/transaction_request_approval_spec.rb +52 -0
  190. data/spec/models/transaction_request_broadcasted_data_item_spec.rb +70 -0
  191. data/spec/models/transaction_request_broadcasted_data_spec.rb +46 -0
  192. data/spec/models/transaction_request_broadcasted_spec.rb +52 -0
  193. data/spec/models/transaction_request_fail_data_item_spec.rb +70 -0
  194. data/spec/models/transaction_request_fail_data_spec.rb +46 -0
  195. data/spec/models/transaction_request_fail_spec.rb +52 -0
  196. data/spec/models/transaction_request_mined_data_spec.rb +46 -0
  197. data/spec/models/transaction_request_mined_spec.rb +52 -0
  198. data/spec/models/transaction_request_rejection_data_item_spec.rb +64 -0
  199. data/spec/models/transaction_request_rejection_data_spec.rb +46 -0
  200. data/spec/models/transaction_request_rejection_spec.rb +52 -0
  201. metadata +186 -46
  202. data/docs/GenerateReceivingAddressRBData.md +0 -18
  203. data/docs/GenerateReceivingAddressRData.md +0 -18
  204. data/docs/ValidatingApi.md +0 -87
  205. data/lib/crypto_apis/api/validating_api.rb +0 -108
@@ -0,0 +1,30 @@
1
+ # CryptoApis::TransactionRequestFailDataItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **blockchain** | **String** | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. | |
8
+ | **network** | **String** | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \"mainnet\" is the live network with actual data while networks like \"testnet\", \"ropsten\", \"rinkeby\" are test networks. | |
9
+ | **required_approvals** | **Integer** | The required number of approvals needed to approve the transaction. | |
10
+ | **required_rejections** | **Integer** | The required number of rejections needed to reject the transaction. | |
11
+ | **current_approvals** | **Integer** | The current number of approvals given for the transaction. | |
12
+ | **current_rejections** | **Integer** | The current number of rejections given for the transaction. | |
13
+ | **error_message** | **String** | Represents the error message received for the transaction. | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'crypto_apis'
19
+
20
+ instance = CryptoApis::TransactionRequestFailDataItem.new(
21
+ blockchain: bitcoin,
22
+ network: testnet,
23
+ required_approvals: 2,
24
+ required_rejections: 2,
25
+ current_approvals: 0,
26
+ current_rejections: 0,
27
+ error_message: Transaction_Request_Failed
28
+ )
29
+ ```
30
+
@@ -0,0 +1,24 @@
1
+ # CryptoApis::TransactionRequestMined
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **api_version** | **String** | Specifies the version of the API that incorporates this endpoint. | |
8
+ | **reference_id** | **String** | Represents a unique identifier that serves as reference to the specific request which prompts a callback, e.g. Blockchain Events Subscription, Blockchain Automation, etc. | |
9
+ | **idempotency_key** | **String** | Specifies a unique ID generated by the system and attached to each callback. It is used by the server to recognize consecutive requests with the same data with the purpose not to perform the same operation twice. | |
10
+ | **data** | [**TransactionRequestMinedData**](TransactionRequestMinedData.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'crypto_apis'
16
+
17
+ instance = CryptoApis::TransactionRequestMined.new(
18
+ api_version: 2.0,
19
+ reference_id: 6038d09050653d1f0e40584c,
20
+ idempotency_key: e55bf7a4a7188855f1c27541a6c387d04cc3b22ee34d1304b0e6ecad61c9906c,
21
+ data: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # CryptoApis::TransactionRequestMinedData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **product** | **String** | Represents the Crypto APIs 2.0 product which sends the callback. | |
8
+ | **event** | **String** | Defines the specific event, for which a callback subscription is set. | |
9
+ | **item** | [**TransactionRequestBroadcastedDataItem**](TransactionRequestBroadcastedDataItem.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'crypto_apis'
15
+
16
+ instance = CryptoApis::TransactionRequestMinedData.new(
17
+ product: Wallet As A Service,
18
+ event: TRANSACTION_REQUEST_MINED,
19
+ item: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # CryptoApis::TransactionRequestRejection
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **api_version** | **String** | Specifies the version of the API that incorporates this endpoint. | |
8
+ | **reference_id** | **String** | Represents a unique identifier that serves as reference to the specific request which prompts a callback, e.g. Blockchain Events Subscription, Blockchain Automation, etc. | |
9
+ | **idempotency_key** | **String** | Specifies a unique ID generated by the system and attached to each callback. It is used by the server to recognize consecutive requests with the same data with the purpose not to perform the same operation twice. | |
10
+ | **data** | [**TransactionRequestRejectionData**](TransactionRequestRejectionData.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'crypto_apis'
16
+
17
+ instance = CryptoApis::TransactionRequestRejection.new(
18
+ api_version: 2.0,
19
+ reference_id: 6038d09050653d1f0e40584c,
20
+ idempotency_key: e55bf7a4a7188855f1c27541a6c387d04cc3b22ee34d1304b0e6ecad61c9906c,
21
+ data: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # CryptoApis::TransactionRequestRejectionData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **product** | **String** | Represents the Crypto APIs 2.0 product which sends the callback. | |
8
+ | **event** | **String** | Defines the specific event, for which a callback subscription is set. | |
9
+ | **item** | [**TransactionRequestRejectionDataItem**](TransactionRequestRejectionDataItem.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'crypto_apis'
15
+
16
+ instance = CryptoApis::TransactionRequestRejectionData.new(
17
+ product: Wallet As A Service,
18
+ event: TRANSACTION_REQUEST_REJECTION,
19
+ item: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # CryptoApis::TransactionRequestRejectionDataItem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **blockchain** | **String** | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. | |
8
+ | **network** | **String** | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \"mainnet\" is the live network with actual data while networks like \"testnet\", \"ropsten\", \"rinkeby\" are test networks. | |
9
+ | **required_approvals** | **Integer** | The required number of approvals needed to approve the transaction. | |
10
+ | **required_rejections** | **Integer** | The required number of rejections needed to reject the transaction. | |
11
+ | **current_approvals** | **Integer** | The current number of approvals given for the transaction. | |
12
+ | **current_rejections** | **Integer** | The current number of rejections given for the transaction. | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'crypto_apis'
18
+
19
+ instance = CryptoApis::TransactionRequestRejectionDataItem.new(
20
+ blockchain: bitcoin,
21
+ network: testnet,
22
+ required_approvals: 2,
23
+ required_rejections: 2,
24
+ current_approvals: 0,
25
+ current_rejections: 2
26
+ )
27
+ ```
28
+
@@ -6,7 +6,7 @@ All URIs are relative to *https://rest.cryptoapis.io/v2*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**create_coins_transaction_request_from_address**](TransactionsApi.md#create_coins_transaction_request_from_address) | **POST** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/addresses/{address}/transaction-requests | Create Coins Transaction Request from Address |
8
8
  | [**create_coins_transaction_request_from_wallet**](TransactionsApi.md#create_coins_transaction_request_from_wallet) | **POST** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/transaction-requests | Create Coins Transaction Request from Wallet |
9
- | [**create_tokens_transaction_request_from_address**](TransactionsApi.md#create_tokens_transaction_request_from_address) | **POST** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/addresses/{address}/token-transaction-requests | Create Tokens Transaction Request from Address |
9
+ | [**create_tokens_transaction_request_from_address**](TransactionsApi.md#create_tokens_transaction_request_from_address) | **POST** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/addresses/{senderAddress}/token-transaction-requests | Create Tokens Transaction Request from Address |
10
10
 
11
11
 
12
12
  ## create_coins_transaction_request_from_address
@@ -37,7 +37,7 @@ network = 'mainnet' # String | Represents the name of the blockchain network use
37
37
  wallet_id = '609e221675d04500068718dc' # String | Represents the sender's specific and unique Wallet ID of the sender.
38
38
  opts = {
39
39
  context: 'context_example', # String | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user.
40
- create_coins_transaction_request_from_address_rb: CryptoApis::CreateCoinsTransactionRequestFromAddressRB.new({data: CryptoApis::CreateCoinsTransactionRequestFromAddressRBData.new({item: CryptoApis::CreateCoinsTransactionRequestFromAddressRBDataItem.new({amount: '0.2', fee_priority: 'slow', to_address: '0xc065b539490f81b6c297c37b1925c3be2f190732'})})}) # CreateCoinsTransactionRequestFromAddressRB |
40
+ create_coins_transaction_request_from_address_rb: CryptoApis::CreateCoinsTransactionRequestFromAddressRB.new({data: CryptoApis::CreateCoinsTransactionRequestFromAddressRBData.new({item: CryptoApis::CreateCoinsTransactionRequestFromAddressRBDataItem.new({amount: '0.2', fee_priority: 'slow', recipient_address: '0xc065b539490f81b6c297c37b1925c3be2f190732'})})}) # CreateCoinsTransactionRequestFromAddressRB |
41
41
  }
42
42
 
43
43
  begin
@@ -119,7 +119,7 @@ network = 'mainnet' # String | Represents the name of the blockchain network use
119
119
  wallet_id = '609e221675d04500068718dc' # String | Represents the sender's specific and unique Wallet ID of the sender.
120
120
  opts = {
121
121
  context: 'context_example', # String | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user.
122
- create_coins_transaction_request_from_wallet_rb: CryptoApis::CreateCoinsTransactionRequestFromWalletRB.new({data: CryptoApis::CreateCoinsTransactionRequestFromWalletRBData.new({item: CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItem.new({destinations: [CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemDestinations.new({address: '0x6f61e3c2fbb8c8be698bd0907ba6c04b62800fe5', amount: '0.125'})], fee_priority: 'slow'})})}) # CreateCoinsTransactionRequestFromWalletRB |
122
+ create_coins_transaction_request_from_wallet_rb: CryptoApis::CreateCoinsTransactionRequestFromWalletRB.new({data: CryptoApis::CreateCoinsTransactionRequestFromWalletRBData.new({item: CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItem.new({fee_priority: 'slow', recipients: [CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.new({address: '0x6f61e3c2fbb8c8be698bd0907ba6c04b62800fe5', amount: '0.125'})]})})}) # CreateCoinsTransactionRequestFromWalletRB |
123
123
  }
124
124
 
125
125
  begin
@@ -175,7 +175,7 @@ end
175
175
 
176
176
  ## create_tokens_transaction_request_from_address
177
177
 
178
- > <CreateTokensTransactionRequestFromAddressR> create_tokens_transaction_request_from_address(address, blockchain, network, wallet_id, opts)
178
+ > <CreateTokensTransactionRequestFromAddressR> create_tokens_transaction_request_from_address(blockchain, network, sender_address, wallet_id, opts)
179
179
 
180
180
  Create Tokens Transaction Request from Address
181
181
 
@@ -195,18 +195,18 @@ CryptoApis.configure do |config|
195
195
  end
196
196
 
197
197
  api_instance = CryptoApis::TransactionsApi.new
198
- address = '0x6f61e3c2fbb8c8be698bd0907ba6c04b62800fe5' # String | Defines the specific source address for the transaction.
199
198
  blockchain = 'ethereum' # String | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
200
199
  network = 'mainnet' # String | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \"mainnet\" is the live network with actual data while networks like \"testnet\", \"ropsten\", \"rinkeby\" are test networks.
200
+ sender_address = '0x6f61e3c2fbb8c8be698bd0907ba6c04b62800fe5' # String | Defines the specific source address for the transaction.
201
201
  wallet_id = '609e221675d04500068718dc' # String | Defines the unique ID of the Wallet.
202
202
  opts = {
203
203
  context: 'context_example', # String | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user.
204
- create_tokens_transaction_request_from_address_rb: CryptoApis::CreateTokensTransactionRequestFromAddressRB.new({data: CryptoApis::CreateTokensTransactionRequestFromAddressRBData.new({item: CryptoApis::CreateTokensTransactionRequestFromAddressRBDataItem.new({amount: '0.2', fee_priority: 'slow', to_address: '0xc065b539490f81b6c297c37b1925c3be2f190732', token_identifier: '1'})})}) # CreateTokensTransactionRequestFromAddressRB |
204
+ create_tokens_transaction_request_from_address_rb: CryptoApis::CreateTokensTransactionRequestFromAddressRB.new({data: CryptoApis::CreateTokensTransactionRequestFromAddressRBData.new({item: CryptoApis::CreateTokensTransactionRequestFromAddressRBDataItem.new({amount: '0.2', fee_priority: 'slow', recipient_address: '0xc065b539490f81b6c297c37b1925c3be2f190732', token_identifier: '1'})})}) # CreateTokensTransactionRequestFromAddressRB |
205
205
  }
206
206
 
207
207
  begin
208
208
  # Create Tokens Transaction Request from Address
209
- result = api_instance.create_tokens_transaction_request_from_address(address, blockchain, network, wallet_id, opts)
209
+ result = api_instance.create_tokens_transaction_request_from_address(blockchain, network, sender_address, wallet_id, opts)
210
210
  p result
211
211
  rescue CryptoApis::ApiError => e
212
212
  puts "Error when calling TransactionsApi->create_tokens_transaction_request_from_address: #{e}"
@@ -217,12 +217,12 @@ end
217
217
 
218
218
  This returns an Array which contains the response data, status code and headers.
219
219
 
220
- > <Array(<CreateTokensTransactionRequestFromAddressR>, Integer, Hash)> create_tokens_transaction_request_from_address_with_http_info(address, blockchain, network, wallet_id, opts)
220
+ > <Array(<CreateTokensTransactionRequestFromAddressR>, Integer, Hash)> create_tokens_transaction_request_from_address_with_http_info(blockchain, network, sender_address, wallet_id, opts)
221
221
 
222
222
  ```ruby
223
223
  begin
224
224
  # Create Tokens Transaction Request from Address
225
- data, status_code, headers = api_instance.create_tokens_transaction_request_from_address_with_http_info(address, blockchain, network, wallet_id, opts)
225
+ data, status_code, headers = api_instance.create_tokens_transaction_request_from_address_with_http_info(blockchain, network, sender_address, wallet_id, opts)
226
226
  p status_code # => 2xx
227
227
  p headers # => { ... }
228
228
  p data # => <CreateTokensTransactionRequestFromAddressR>
@@ -235,9 +235,9 @@ end
235
235
 
236
236
  | Name | Type | Description | Notes |
237
237
  | ---- | ---- | ----------- | ----- |
238
- | **address** | **String** | Defines the specific source address for the transaction. | |
239
238
  | **blockchain** | **String** | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. | [default to &#39;ethereum&#39;] |
240
239
  | **network** | **String** | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \&quot;mainnet\&quot; is the live network with actual data while networks like \&quot;testnet\&quot;, \&quot;ropsten\&quot;, \&quot;rinkeby\&quot; are test networks. | [default to &#39;mainnet&#39;] |
240
+ | **sender_address** | **String** | Defines the specific source address for the transaction. | |
241
241
  | **wallet_id** | **String** | Defines the unique ID of the Wallet. | |
242
242
  | **context** | **String** | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user. | [optional] |
243
243
  | **create_tokens_transaction_request_from_address_rb** | [**CreateTokensTransactionRequestFromAddressRB**](CreateTokensTransactionRequestFromAddressRB.md) | | [optional] |
data/docs/XRPRippleApi.md CHANGED
@@ -424,7 +424,8 @@ address = 'rA9bXGJcXvZKaWofrRphdJsBWzhyCfH3z' # String | Represents the public a
424
424
  opts = {
425
425
  context: 'context_example', # String | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user.
426
426
  limit: 50, # Integer | Defines how many items should be returned in the response per page basis.
427
- offset: 10 # Integer | The starting index of the response items, i.e. where the response should start listing the returned items.
427
+ offset: 10, # Integer | The starting index of the response items, i.e. where the response should start listing the returned items.
428
+ transaction_type: 'account-set' # String |
428
429
  }
429
430
 
430
431
  begin
@@ -463,6 +464,7 @@ end
463
464
  | **context** | **String** | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user. | [optional] |
464
465
  | **limit** | **Integer** | Defines how many items should be returned in the response per page basis. | [optional][default to 50] |
465
466
  | **offset** | **Integer** | The starting index of the response items, i.e. where the response should start listing the returned items. | [optional][default to 0] |
467
+ | **transaction_type** | **String** | | [optional] |
466
468
 
467
469
  ### Return type
468
470
 
data/lib/crypto_apis.rb CHANGED
@@ -79,6 +79,18 @@ require 'crypto_apis/models/blockchain_data_transaction_not_found'
79
79
  require 'crypto_apis/models/blockchain_data_transaction_not_found_error'
80
80
  require 'crypto_apis/models/blockchain_events_callbacks_limit_reached'
81
81
  require 'crypto_apis/models/blockchain_events_callbacks_limit_reached_error'
82
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_r'
83
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_rb'
84
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_rb_data'
85
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_rb_data_item'
86
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_r_data'
87
+ require 'crypto_apis/models/broadcast_locally_signed_transaction_ri'
88
+ require 'crypto_apis/models/broadcast_transaction_fail'
89
+ require 'crypto_apis/models/broadcast_transaction_fail_data'
90
+ require 'crypto_apis/models/broadcast_transaction_fail_data_item'
91
+ require 'crypto_apis/models/broadcast_transaction_success'
92
+ require 'crypto_apis/models/broadcast_transaction_success_data'
93
+ require 'crypto_apis/models/broadcast_transaction_success_data_item'
82
94
  require 'crypto_apis/models/coins_forwarding_automations_limit_reached'
83
95
  require 'crypto_apis/models/coins_forwarding_automations_limit_reached_error'
84
96
  require 'crypto_apis/models/coins_forwarding_fail'
@@ -119,7 +131,7 @@ require 'crypto_apis/models/create_coins_transaction_request_from_wallet_r'
119
131
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_rb'
120
132
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data'
121
133
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item'
122
- require 'crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item_destinations'
134
+ require 'crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item_recipients'
123
135
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_r_data'
124
136
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_ri'
125
137
  require 'crypto_apis/models/create_coins_transaction_request_from_wallet_ri_recipients'
@@ -152,12 +164,12 @@ require 'crypto_apis/models/endpoint_not_allowed_for_plan'
152
164
  require 'crypto_apis/models/endpoint_not_allowed_for_plan_error'
153
165
  require 'crypto_apis/models/feature_mainnets_not_allowed_for_plan'
154
166
  require 'crypto_apis/models/feature_mainnets_not_allowed_for_plan_error'
155
- require 'crypto_apis/models/generate_receiving_address_r'
156
- require 'crypto_apis/models/generate_receiving_address_rb'
157
- require 'crypto_apis/models/generate_receiving_address_rb_data'
158
- require 'crypto_apis/models/generate_receiving_address_rb_data_item'
159
- require 'crypto_apis/models/generate_receiving_address_r_data'
160
- require 'crypto_apis/models/generate_receiving_address_ri'
167
+ require 'crypto_apis/models/generate_deposit_address_r'
168
+ require 'crypto_apis/models/generate_deposit_address_rb'
169
+ require 'crypto_apis/models/generate_deposit_address_rb_data'
170
+ require 'crypto_apis/models/generate_deposit_address_rb_data_item'
171
+ require 'crypto_apis/models/generate_deposit_address_r_data'
172
+ require 'crypto_apis/models/generate_deposit_address_ri'
161
173
  require 'crypto_apis/models/get_address_details_r'
162
174
  require 'crypto_apis/models/get_address_details_r_data'
163
175
  require 'crypto_apis/models/get_address_details_ri'
@@ -170,6 +182,7 @@ require 'crypto_apis/models/get_block_details_by_block_hash_ri'
170
182
  require 'crypto_apis/models/get_block_details_by_block_hash_ribs'
171
183
  require 'crypto_apis/models/get_block_details_by_block_hash_ribsb'
172
184
  require 'crypto_apis/models/get_block_details_by_block_hash_ribsbc'
185
+ require 'crypto_apis/models/get_block_details_by_block_hash_ribsbsc'
173
186
  require 'crypto_apis/models/get_block_details_by_block_hash_ribsd'
174
187
  require 'crypto_apis/models/get_block_details_by_block_hash_ribsd2'
175
188
  require 'crypto_apis/models/get_block_details_by_block_hash_ribse'
@@ -181,6 +194,7 @@ require 'crypto_apis/models/get_block_details_by_block_height_ri'
181
194
  require 'crypto_apis/models/get_block_details_by_block_height_ribs'
182
195
  require 'crypto_apis/models/get_block_details_by_block_height_ribsb'
183
196
  require 'crypto_apis/models/get_block_details_by_block_height_ribsbc'
197
+ require 'crypto_apis/models/get_block_details_by_block_height_ribsbsc'
184
198
  require 'crypto_apis/models/get_block_details_by_block_height_ribsd'
185
199
  require 'crypto_apis/models/get_block_details_by_block_height_ribsd2'
186
200
  require 'crypto_apis/models/get_block_details_by_block_height_ribse'
@@ -214,6 +228,7 @@ require 'crypto_apis/models/get_latest_mined_block_ri'
214
228
  require 'crypto_apis/models/get_latest_mined_block_ribs'
215
229
  require 'crypto_apis/models/get_latest_mined_block_ribsb'
216
230
  require 'crypto_apis/models/get_latest_mined_block_ribsbc'
231
+ require 'crypto_apis/models/get_latest_mined_block_ribsbsc'
217
232
  require 'crypto_apis/models/get_latest_mined_block_ribsd'
218
233
  require 'crypto_apis/models/get_latest_mined_block_ribsd2'
219
234
  require 'crypto_apis/models/get_latest_mined_block_ribse'
@@ -240,6 +255,8 @@ require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbc'
240
255
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbc_script_pub_key'
241
256
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbc_vin'
242
257
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbc_vout'
258
+ require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbsc'
259
+ require 'crypto_apis/models/get_transaction_details_by_transaction_idribsbsc_gas_price'
243
260
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsb_script_pub_key'
244
261
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsb_script_sig'
245
262
  require 'crypto_apis/models/get_transaction_details_by_transaction_idribsb_vin'
@@ -346,6 +363,9 @@ require 'crypto_apis/models/list_blockchain_events_subscriptions_ri'
346
363
  require 'crypto_apis/models/list_coins_forwarding_automations_r'
347
364
  require 'crypto_apis/models/list_coins_forwarding_automations_r_data'
348
365
  require 'crypto_apis/models/list_coins_forwarding_automations_ri'
366
+ require 'crypto_apis/models/list_deposit_addresses_r'
367
+ require 'crypto_apis/models/list_deposit_addresses_r_data'
368
+ require 'crypto_apis/models/list_deposit_addresses_ri'
349
369
  require 'crypto_apis/models/list_hd_wallet_x_pub_y_pub_z_pub_transactions_r'
350
370
  require 'crypto_apis/models/list_hd_wallet_x_pub_y_pub_z_pub_transactions_r_data'
351
371
  require 'crypto_apis/models/list_hd_wallet_x_pub_y_pub_z_pub_transactions_ri'
@@ -374,9 +394,6 @@ require 'crypto_apis/models/list_omni_transactions_by_block_height_ri'
374
394
  require 'crypto_apis/models/list_omni_transactions_by_block_height_ri_fee'
375
395
  require 'crypto_apis/models/list_omni_transactions_by_block_height_ri_recipients'
376
396
  require 'crypto_apis/models/list_omni_transactions_by_block_height_ri_senders'
377
- require 'crypto_apis/models/list_receiving_addresses_r'
378
- require 'crypto_apis/models/list_receiving_addresses_r_data'
379
- require 'crypto_apis/models/list_receiving_addresses_ri'
380
397
  require 'crypto_apis/models/list_supported_assets_r'
381
398
  require 'crypto_apis/models/list_supported_assets_r_data'
382
399
  require 'crypto_apis/models/list_supported_assets_ri'
@@ -405,6 +422,7 @@ require 'crypto_apis/models/list_transactions_by_address_ribs'
405
422
  require 'crypto_apis/models/list_transactions_by_address_ribsb'
406
423
  require 'crypto_apis/models/list_transactions_by_address_ribsbc'
407
424
  require 'crypto_apis/models/list_transactions_by_address_ribsbc_vin'
425
+ require 'crypto_apis/models/list_transactions_by_address_ribsbsc'
408
426
  require 'crypto_apis/models/list_transactions_by_address_ribsb_script_pub_key'
409
427
  require 'crypto_apis/models/list_transactions_by_address_ribsb_vin'
410
428
  require 'crypto_apis/models/list_transactions_by_address_ribsb_vout'
@@ -432,6 +450,7 @@ require 'crypto_apis/models/list_transactions_by_block_hash_ribsbc'
432
450
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsbc_script_pub_key'
433
451
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsbc_vin'
434
452
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsbc_vout'
453
+ require 'crypto_apis/models/list_transactions_by_block_hash_ribsbsc'
435
454
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsb_vin'
436
455
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsd'
437
456
  require 'crypto_apis/models/list_transactions_by_block_hash_ribsd2'
@@ -458,6 +477,8 @@ require 'crypto_apis/models/list_transactions_by_block_height_ri'
458
477
  require 'crypto_apis/models/list_transactions_by_block_height_ribs'
459
478
  require 'crypto_apis/models/list_transactions_by_block_height_ribsb'
460
479
  require 'crypto_apis/models/list_transactions_by_block_height_ribsbc'
480
+ require 'crypto_apis/models/list_transactions_by_block_height_ribsbsc'
481
+ require 'crypto_apis/models/list_transactions_by_block_height_ribsbsc_gas_price'
461
482
  require 'crypto_apis/models/list_transactions_by_block_height_ribsb_script_pub_key'
462
483
  require 'crypto_apis/models/list_transactions_by_block_height_ribsb_vout'
463
484
  require 'crypto_apis/models/list_transactions_by_block_height_ribsd'
@@ -606,6 +627,20 @@ require 'crypto_apis/models/transaction_mined'
606
627
  require 'crypto_apis/models/transaction_mined_data'
607
628
  require 'crypto_apis/models/transaction_mined_data_item'
608
629
  require 'crypto_apis/models/transaction_mined_data_item_mined_in_block'
630
+ require 'crypto_apis/models/transaction_request_approval'
631
+ require 'crypto_apis/models/transaction_request_approval_data'
632
+ require 'crypto_apis/models/transaction_request_approval_data_item'
633
+ require 'crypto_apis/models/transaction_request_broadcasted'
634
+ require 'crypto_apis/models/transaction_request_broadcasted_data'
635
+ require 'crypto_apis/models/transaction_request_broadcasted_data_item'
636
+ require 'crypto_apis/models/transaction_request_fail'
637
+ require 'crypto_apis/models/transaction_request_fail_data'
638
+ require 'crypto_apis/models/transaction_request_fail_data_item'
639
+ require 'crypto_apis/models/transaction_request_mined'
640
+ require 'crypto_apis/models/transaction_request_mined_data'
641
+ require 'crypto_apis/models/transaction_request_rejection'
642
+ require 'crypto_apis/models/transaction_request_rejection_data'
643
+ require 'crypto_apis/models/transaction_request_rejection_data_item'
609
644
  require 'crypto_apis/models/unexpected_server_error'
610
645
  require 'crypto_apis/models/unexpected_server_error_error'
611
646
  require 'crypto_apis/models/unsupported_media_type'
@@ -637,6 +672,7 @@ require 'crypto_apis/api/automatic_coins_forwarding_api'
637
672
  require 'crypto_apis/api/automatic_tokens_forwarding_api'
638
673
  require 'crypto_apis/api/create_subscriptions_for_api'
639
674
  require 'crypto_apis/api/exchange_rates_api'
675
+ require 'crypto_apis/api/features_api'
640
676
  require 'crypto_apis/api/generating_api'
641
677
  require 'crypto_apis/api/informative_api'
642
678
  require 'crypto_apis/api/internal_api'
@@ -647,7 +683,6 @@ require 'crypto_apis/api/tokens_api'
647
683
  require 'crypto_apis/api/transactions_api'
648
684
  require 'crypto_apis/api/utxo_based_api'
649
685
  require 'crypto_apis/api/unified_endpoints_api'
650
- require 'crypto_apis/api/validating_api'
651
686
  require 'crypto_apis/api/xrp_ripple_api'
652
687
  require 'crypto_apis/api/zilliqa_api'
653
688
 
@@ -0,0 +1,194 @@
1
+ =begin
2
+ #CryptoAPIs
3
+
4
+ #Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of their blockchain applications. Crypto APIs 2.0 provides unified endpoints and data, raw data, automatic tokens and coins forwardings, callback functionalities, and much more.
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: developers@cryptoapis.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module CryptoApis
16
+ class FeaturesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Broadcast Locally Signed Transaction
23
+ # Through this endpoint customers can broadcast transactions that have been already signed locally. Instead of using a node for broadcasting a signed transaction users can use this endpoint. We then keep the user posted about the status by sending you a callback with a success or failure status.
24
+ # @param blockchain [String] Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
25
+ # @param network [String] Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \&quot;mainnet\&quot; is the live network with actual data while networks like \&quot;testnet\&quot;, \&quot;ropsten\&quot;, \&quot;rinkeby\&quot; are test networks.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :context In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user.
28
+ # @option opts [BroadcastLocallySignedTransactionRB] :broadcast_locally_signed_transaction_rb
29
+ # @return [BroadcastLocallySignedTransactionR]
30
+ def broadcast_locally_signed_transaction(blockchain, network, opts = {})
31
+ data, _status_code, _headers = broadcast_locally_signed_transaction_with_http_info(blockchain, network, opts)
32
+ data
33
+ end
34
+
35
+ # Broadcast Locally Signed Transaction
36
+ # Through this endpoint customers can broadcast transactions that have been already signed locally. Instead of using a node for broadcasting a signed transaction users can use this endpoint. We then keep the user posted about the status by sending you a callback with a success or failure status.
37
+ # @param blockchain [String] Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
38
+ # @param network [String] Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \&quot;mainnet\&quot; is the live network with actual data while networks like \&quot;testnet\&quot;, \&quot;ropsten\&quot;, \&quot;rinkeby\&quot; are test networks.
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :context In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user.
41
+ # @option opts [BroadcastLocallySignedTransactionRB] :broadcast_locally_signed_transaction_rb
42
+ # @return [Array<(BroadcastLocallySignedTransactionR, Integer, Hash)>] BroadcastLocallySignedTransactionR data, response status code and response headers
43
+ def broadcast_locally_signed_transaction_with_http_info(blockchain, network, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: FeaturesApi.broadcast_locally_signed_transaction ...'
46
+ end
47
+ # verify the required parameter 'blockchain' is set
48
+ if @api_client.config.client_side_validation && blockchain.nil?
49
+ fail ArgumentError, "Missing the required parameter 'blockchain' when calling FeaturesApi.broadcast_locally_signed_transaction"
50
+ end
51
+ # verify enum value
52
+ allowable_values = ["bitcoin", "bitcoin-cash", "litecoin", "dogecoin", "dash", "ethereum", "ethereum-classic"]
53
+ if @api_client.config.client_side_validation && !allowable_values.include?(blockchain)
54
+ fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}"
55
+ end
56
+ # verify the required parameter 'network' is set
57
+ if @api_client.config.client_side_validation && network.nil?
58
+ fail ArgumentError, "Missing the required parameter 'network' when calling FeaturesApi.broadcast_locally_signed_transaction"
59
+ end
60
+ # verify enum value
61
+ allowable_values = ["mainnet", "testnet", "ropsten", "rinkeby", "mordor"]
62
+ if @api_client.config.client_side_validation && !allowable_values.include?(network)
63
+ fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}"
64
+ end
65
+ # resource path
66
+ local_var_path = '/blockchain-tools/{blockchain}/{network}/transactions/broadcast'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s))
67
+
68
+ # query parameters
69
+ query_params = opts[:query_params] || {}
70
+ query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil?
71
+
72
+ # header parameters
73
+ header_params = opts[:header_params] || {}
74
+ # HTTP header 'Accept' (if needed)
75
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
76
+ # HTTP header 'Content-Type'
77
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
78
+
79
+ # form parameters
80
+ form_params = opts[:form_params] || {}
81
+
82
+ # http body (model)
83
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'broadcast_locally_signed_transaction_rb'])
84
+
85
+ # return_type
86
+ return_type = opts[:debug_return_type] || 'BroadcastLocallySignedTransactionR'
87
+
88
+ # auth_names
89
+ auth_names = opts[:debug_auth_names] || ['ApiKey']
90
+
91
+ new_options = opts.merge(
92
+ :operation => :"FeaturesApi.broadcast_locally_signed_transaction",
93
+ :header_params => header_params,
94
+ :query_params => query_params,
95
+ :form_params => form_params,
96
+ :body => post_body,
97
+ :auth_names => auth_names,
98
+ :return_type => return_type
99
+ )
100
+
101
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "API called: FeaturesApi#broadcast_locally_signed_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
+ end
105
+ return data, status_code, headers
106
+ end
107
+
108
+ # Validate Address
109
+ # This endpoint checks user public addresses whether they are valid or not.
110
+ # @param blockchain [String] Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
111
+ # @param network [String] Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \&quot;mainnet\&quot; is the live network with actual data while networks like \&quot;testnet\&quot;, \&quot;ropsten\&quot;, \&quot;rinkeby\&quot; are test networks.
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [String] :context In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user.
114
+ # @option opts [ValidateAddressRB] :validate_address_rb
115
+ # @return [ValidateAddressR]
116
+ def validate_address(blockchain, network, opts = {})
117
+ data, _status_code, _headers = validate_address_with_http_info(blockchain, network, opts)
118
+ data
119
+ end
120
+
121
+ # Validate Address
122
+ # This endpoint checks user public addresses whether they are valid or not.
123
+ # @param blockchain [String] Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
124
+ # @param network [String] Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - \&quot;mainnet\&quot; is the live network with actual data while networks like \&quot;testnet\&quot;, \&quot;ropsten\&quot;, \&quot;rinkeby\&quot; are test networks.
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :context In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. &#x60;context&#x60; is specified by the user.
127
+ # @option opts [ValidateAddressRB] :validate_address_rb
128
+ # @return [Array<(ValidateAddressR, Integer, Hash)>] ValidateAddressR data, response status code and response headers
129
+ def validate_address_with_http_info(blockchain, network, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: FeaturesApi.validate_address ...'
132
+ end
133
+ # verify the required parameter 'blockchain' is set
134
+ if @api_client.config.client_side_validation && blockchain.nil?
135
+ fail ArgumentError, "Missing the required parameter 'blockchain' when calling FeaturesApi.validate_address"
136
+ end
137
+ # verify enum value
138
+ allowable_values = ["bitcoin", "bitcoin-cash", "litecoin", "dogecoin", "dash", "ethereum", "ethereum-classic", "xrp", "zilliqa"]
139
+ if @api_client.config.client_side_validation && !allowable_values.include?(blockchain)
140
+ fail ArgumentError, "invalid value for \"blockchain\", must be one of #{allowable_values}"
141
+ end
142
+ # verify the required parameter 'network' is set
143
+ if @api_client.config.client_side_validation && network.nil?
144
+ fail ArgumentError, "Missing the required parameter 'network' when calling FeaturesApi.validate_address"
145
+ end
146
+ # verify enum value
147
+ allowable_values = ["mainnet", "testnet", "ropsten", "rinkeby", "mordor", "kotti"]
148
+ if @api_client.config.client_side_validation && !allowable_values.include?(network)
149
+ fail ArgumentError, "invalid value for \"network\", must be one of #{allowable_values}"
150
+ end
151
+ # resource path
152
+ local_var_path = '/blockchain-tools/{blockchain}/{network}/addresses/validate'.sub('{' + 'blockchain' + '}', CGI.escape(blockchain.to_s)).sub('{' + 'network' + '}', CGI.escape(network.to_s))
153
+
154
+ # query parameters
155
+ query_params = opts[:query_params] || {}
156
+ query_params[:'context'] = opts[:'context'] if !opts[:'context'].nil?
157
+
158
+ # header parameters
159
+ header_params = opts[:header_params] || {}
160
+ # HTTP header 'Accept' (if needed)
161
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
162
+ # HTTP header 'Content-Type'
163
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
164
+
165
+ # form parameters
166
+ form_params = opts[:form_params] || {}
167
+
168
+ # http body (model)
169
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'validate_address_rb'])
170
+
171
+ # return_type
172
+ return_type = opts[:debug_return_type] || 'ValidateAddressR'
173
+
174
+ # auth_names
175
+ auth_names = opts[:debug_auth_names] || ['ApiKey']
176
+
177
+ new_options = opts.merge(
178
+ :operation => :"FeaturesApi.validate_address",
179
+ :header_params => header_params,
180
+ :query_params => query_params,
181
+ :form_params => form_params,
182
+ :body => post_body,
183
+ :auth_names => auth_names,
184
+ :return_type => return_type
185
+ )
186
+
187
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug "API called: FeaturesApi#validate_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
+ end
191
+ return data, status_code, headers
192
+ end
193
+ end
194
+ end