crypto_apis 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +51 -15
- data/docs/BroadcastLocallySignedTransactionR.md +24 -0
- data/docs/BroadcastLocallySignedTransactionRB.md +20 -0
- data/docs/BroadcastLocallySignedTransactionRBData.md +18 -0
- data/docs/BroadcastLocallySignedTransactionRBDataItem.md +22 -0
- data/docs/BroadcastLocallySignedTransactionRData.md +18 -0
- data/docs/BroadcastLocallySignedTransactionRI.md +18 -0
- data/docs/BroadcastTransactionFail.md +24 -0
- data/docs/BroadcastTransactionFailData.md +22 -0
- data/docs/BroadcastTransactionFailDataItem.md +24 -0
- data/docs/BroadcastTransactionSuccess.md +24 -0
- data/docs/BroadcastTransactionSuccessData.md +22 -0
- data/docs/BroadcastTransactionSuccessDataItem.md +22 -0
- data/docs/CreateCoinsTransactionRequestFromAddressRBDataItem.md +6 -2
- data/docs/CreateCoinsTransactionRequestFromAddressRI.md +4 -0
- data/docs/CreateCoinsTransactionRequestFromWalletRBDataItem.md +7 -3
- data/docs/{CreateCoinsTransactionRequestFromWalletRBDataItemDestinations.md → CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.md} +3 -3
- data/docs/CreateCoinsTransactionRequestFromWalletRI.md +4 -0
- data/docs/CreateTokensTransactionRequestFromAddressRBDataItem.md +6 -2
- data/docs/CreateTokensTransactionRequestFromAddressRI.md +4 -0
- data/docs/FeaturesApi.md +167 -0
- data/docs/{ListReceivingAddressesR.md → GenerateDepositAddressR.md} +3 -3
- data/docs/{GenerateReceivingAddressRB.md → GenerateDepositAddressRB.md} +3 -3
- data/docs/GenerateDepositAddressRBData.md +18 -0
- data/docs/{GenerateReceivingAddressRBDataItem.md → GenerateDepositAddressRBDataItem.md} +2 -2
- data/docs/GenerateDepositAddressRData.md +18 -0
- data/docs/{GenerateReceivingAddressRI.md → GenerateDepositAddressRI.md} +2 -2
- data/docs/GeneratingApi.md +16 -16
- data/docs/GetAddressDetailsRIConfirmedBalance.md +2 -2
- data/docs/GetAddressDetailsRITotalReceived.md +2 -2
- data/docs/GetAddressDetailsRITotalSpent.md +2 -2
- data/docs/GetBlockDetailsByBlockHashRIBS.md +2 -0
- data/docs/GetBlockDetailsByBlockHashRIBSBSC.md +36 -0
- data/docs/GetBlockDetailsByBlockHeightRIBS.md +2 -0
- data/docs/GetBlockDetailsByBlockHeightRIBSBSC.md +34 -0
- data/docs/GetLatestMinedBlockRIBS.md +2 -0
- data/docs/GetLatestMinedBlockRIBSBSC.md +34 -0
- data/docs/GetTransactionDetailsByTransactionIDRIBS.md +2 -0
- data/docs/GetTransactionDetailsByTransactionIDRIBSBSC.md +28 -0
- data/docs/GetTransactionDetailsByTransactionIDRIBSBSCGasPrice.md +20 -0
- data/docs/GetTransactionDetailsByTransactionIDRIFee.md +1 -1
- data/docs/InformativeApi.md +15 -15
- data/docs/{GenerateReceivingAddressR.md → ListDepositAddressesR.md} +3 -3
- data/docs/{ListReceivingAddressesRData.md → ListDepositAddressesRData.md} +3 -3
- data/docs/{ListReceivingAddressesRI.md → ListDepositAddressesRI.md} +2 -2
- data/docs/ListTransactionsByAddressRIBS.md +2 -0
- data/docs/ListTransactionsByAddressRIBSBSC.md +30 -0
- data/docs/ListTransactionsByBlockHashRIBS.md +2 -0
- data/docs/ListTransactionsByBlockHashRIBSBSC.md +30 -0
- data/docs/ListTransactionsByBlockHashRIFee.md +1 -1
- data/docs/ListTransactionsByBlockHeightRIBS.md +2 -0
- data/docs/ListTransactionsByBlockHeightRIBSBSC.md +28 -0
- data/docs/ListTransactionsByBlockHeightRIBSBSCGasPrice.md +20 -0
- data/docs/ListXRPRippleTransactionsByAddressRI.md +2 -4
- data/docs/TransactionRequestApproval.md +24 -0
- data/docs/TransactionRequestApprovalData.md +22 -0
- data/docs/TransactionRequestApprovalDataItem.md +28 -0
- data/docs/TransactionRequestBroadcasted.md +24 -0
- data/docs/TransactionRequestBroadcastedData.md +22 -0
- data/docs/TransactionRequestBroadcastedDataItem.md +30 -0
- data/docs/TransactionRequestFail.md +24 -0
- data/docs/TransactionRequestFailData.md +22 -0
- data/docs/TransactionRequestFailDataItem.md +30 -0
- data/docs/TransactionRequestMined.md +24 -0
- data/docs/TransactionRequestMinedData.md +22 -0
- data/docs/TransactionRequestRejection.md +24 -0
- data/docs/TransactionRequestRejectionData.md +22 -0
- data/docs/TransactionRequestRejectionDataItem.md +28 -0
- data/docs/TransactionsApi.md +10 -10
- data/docs/XRPRippleApi.md +3 -1
- data/lib/crypto_apis.rb +46 -11
- data/lib/crypto_apis/api/features_api.rb +194 -0
- data/lib/crypto_apis/api/generating_api.rb +17 -17
- data/lib/crypto_apis/api/informative_api.rb +18 -18
- data/lib/crypto_apis/api/transactions_api.rb +10 -10
- data/lib/crypto_apis/api/unified_endpoints_api.rb +7 -7
- data/lib/crypto_apis/api/xrp_ripple_api.rb +7 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r.rb +263 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r_data.rb +223 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb.rb +233 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data.rb +223 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data_item.rb +249 -0
- data/lib/crypto_apis/models/broadcast_locally_signed_transaction_ri.rb +224 -0
- data/lib/crypto_apis/models/broadcast_transaction_fail.rb +268 -0
- data/lib/crypto_apis/models/broadcast_transaction_fail_data.rb +254 -0
- data/lib/crypto_apis/models/broadcast_transaction_fail_data_item.rb +270 -0
- data/lib/crypto_apis/models/broadcast_transaction_success.rb +268 -0
- data/lib/crypto_apis/models/broadcast_transaction_success_data.rb +254 -0
- data/lib/crypto_apis/models/broadcast_transaction_success_data_item.rb +255 -0
- data/lib/crypto_apis/models/create_coins_transaction_request_from_address_rb_data_item.rb +30 -10
- data/lib/crypto_apis/models/create_coins_transaction_request_from_address_ri.rb +21 -1
- data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item.rb +38 -18
- 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
- data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_ri.rb +21 -1
- data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_rb_data_item.rb +30 -10
- data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_ri.rb +31 -1
- data/lib/crypto_apis/models/{list_receiving_addresses_r.rb → generate_deposit_address_r.rb} +4 -4
- data/lib/crypto_apis/models/{generate_receiving_address_r_data.rb → generate_deposit_address_r_data.rb} +4 -4
- data/lib/crypto_apis/models/{generate_receiving_address_rb.rb → generate_deposit_address_rb.rb} +4 -4
- data/lib/crypto_apis/models/{generate_receiving_address_rb_data.rb → generate_deposit_address_rb_data.rb} +4 -4
- data/lib/crypto_apis/models/{generate_receiving_address_rb_data_item.rb → generate_deposit_address_rb_data_item.rb} +3 -3
- data/lib/crypto_apis/models/{list_receiving_addresses_ri.rb → generate_deposit_address_ri.rb} +3 -3
- data/lib/crypto_apis/models/get_address_details_ri_confirmed_balance.rb +0 -1
- data/lib/crypto_apis/models/get_address_details_ri_total_received.rb +0 -1
- data/lib/crypto_apis/models/get_address_details_ri_total_spent.rb +0 -1
- data/lib/crypto_apis/models/get_block_details_by_block_hash_ribs.rb +1 -0
- data/lib/crypto_apis/models/get_block_details_by_block_hash_ribsbsc.rb +361 -0
- data/lib/crypto_apis/models/get_block_details_by_block_height_ribs.rb +1 -0
- data/lib/crypto_apis/models/get_block_details_by_block_height_ribsbsc.rb +345 -0
- data/lib/crypto_apis/models/get_latest_mined_block_ribs.rb +1 -0
- data/lib/crypto_apis/models/get_latest_mined_block_ribsbsc.rb +345 -0
- data/lib/crypto_apis/models/get_transaction_details_by_transaction_idri_fee.rb +0 -1
- data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribs.rb +1 -0
- data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc.rb +299 -0
- data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc_gas_price.rb +238 -0
- data/lib/crypto_apis/models/{generate_receiving_address_r.rb → list_deposit_addresses_r.rb} +4 -4
- data/lib/crypto_apis/models/{list_receiving_addresses_r_data.rb → list_deposit_addresses_r_data.rb} +4 -4
- data/lib/crypto_apis/models/{generate_receiving_address_ri.rb → list_deposit_addresses_ri.rb} +3 -3
- data/lib/crypto_apis/models/list_transactions_by_address_ribs.rb +1 -0
- data/lib/crypto_apis/models/list_transactions_by_address_ribsbsc.rb +314 -0
- data/lib/crypto_apis/models/list_transactions_by_block_hash_ri_fee.rb +0 -1
- data/lib/crypto_apis/models/list_transactions_by_block_hash_ribs.rb +1 -0
- data/lib/crypto_apis/models/list_transactions_by_block_hash_ribsbsc.rb +314 -0
- data/lib/crypto_apis/models/list_transactions_by_block_height_ribs.rb +1 -0
- data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc.rb +299 -0
- data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc_gas_price.rb +238 -0
- data/lib/crypto_apis/models/list_xrp_ripple_transactions_by_address_ri.rb +1 -16
- data/lib/crypto_apis/models/transaction_request_approval.rb +268 -0
- data/lib/crypto_apis/models/transaction_request_approval_data.rb +254 -0
- data/lib/crypto_apis/models/transaction_request_approval_data_item.rb +300 -0
- data/lib/crypto_apis/models/transaction_request_broadcasted.rb +268 -0
- data/lib/crypto_apis/models/transaction_request_broadcasted_data.rb +254 -0
- data/lib/crypto_apis/models/transaction_request_broadcasted_data_item.rb +315 -0
- data/lib/crypto_apis/models/transaction_request_fail.rb +268 -0
- data/lib/crypto_apis/models/transaction_request_fail_data.rb +254 -0
- data/lib/crypto_apis/models/transaction_request_fail_data_item.rb +315 -0
- data/lib/crypto_apis/models/transaction_request_mined.rb +268 -0
- data/lib/crypto_apis/models/transaction_request_mined_data.rb +254 -0
- data/lib/crypto_apis/models/transaction_request_rejection.rb +268 -0
- data/lib/crypto_apis/models/transaction_request_rejection_data.rb +254 -0
- data/lib/crypto_apis/models/transaction_request_rejection_data_item.rb +300 -0
- data/lib/crypto_apis/version.rb +1 -1
- data/spec/api/{validating_api_spec.rb → features_api_spec.rb} +21 -6
- data/spec/api/generating_api_spec.rb +5 -5
- data/spec/api/informative_api_spec.rb +5 -5
- data/spec/api/transactions_api_spec.rb +1 -1
- data/spec/api/xrp_ripple_api_spec.rb +1 -0
- data/spec/models/broadcast_locally_signed_transaction_r_data_spec.rb +34 -0
- data/spec/models/broadcast_locally_signed_transaction_r_spec.rb +52 -0
- data/spec/models/broadcast_locally_signed_transaction_rb_data_item_spec.rb +46 -0
- data/spec/models/broadcast_locally_signed_transaction_rb_data_spec.rb +34 -0
- data/spec/models/broadcast_locally_signed_transaction_rb_spec.rb +40 -0
- data/spec/models/broadcast_locally_signed_transaction_ri_spec.rb +34 -0
- data/spec/models/broadcast_transaction_fail_data_item_spec.rb +52 -0
- data/spec/models/broadcast_transaction_fail_data_spec.rb +46 -0
- data/spec/models/broadcast_transaction_fail_spec.rb +52 -0
- data/spec/models/broadcast_transaction_success_data_item_spec.rb +46 -0
- data/spec/models/broadcast_transaction_success_data_spec.rb +46 -0
- data/spec/models/broadcast_transaction_success_spec.rb +52 -0
- data/spec/models/create_coins_transaction_request_from_address_rb_data_item_spec.rb +13 -1
- data/spec/models/create_coins_transaction_request_from_address_ri_spec.rb +12 -0
- 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
- data/spec/models/create_coins_transaction_request_from_wallet_rb_data_item_spec.rb +13 -1
- data/spec/models/create_coins_transaction_request_from_wallet_ri_spec.rb +12 -0
- data/spec/models/create_tokens_transaction_request_from_address_rb_data_item_spec.rb +13 -1
- data/spec/models/create_tokens_transaction_request_from_address_ri_spec.rb +12 -0
- data/spec/models/{generate_receiving_address_r_data_spec.rb → generate_deposit_address_r_data_spec.rb} +6 -6
- data/spec/models/{list_receiving_addresses_r_spec.rb → generate_deposit_address_r_spec.rb} +6 -6
- data/spec/models/{generate_receiving_address_rb_data_item_spec.rb → generate_deposit_address_rb_data_item_spec.rb} +6 -6
- data/spec/models/{generate_receiving_address_rb_data_spec.rb → generate_deposit_address_rb_data_spec.rb} +6 -6
- data/spec/models/{generate_receiving_address_rb_spec.rb → generate_deposit_address_rb_spec.rb} +6 -6
- data/spec/models/{list_receiving_addresses_ri_spec.rb → generate_deposit_address_ri_spec.rb} +6 -6
- data/spec/models/get_block_details_by_block_hash_ribsbsc_spec.rb +88 -0
- data/spec/models/get_block_details_by_block_height_ribsbsc_spec.rb +82 -0
- data/spec/models/get_latest_mined_block_ribsbsc_spec.rb +82 -0
- data/spec/models/get_transaction_details_by_transaction_idribsbsc_gas_price_spec.rb +40 -0
- data/spec/models/get_transaction_details_by_transaction_idribsbsc_spec.rb +64 -0
- data/spec/models/{list_receiving_addresses_r_data_spec.rb → list_deposit_addresses_r_data_spec.rb} +6 -6
- data/spec/models/{generate_receiving_address_r_spec.rb → list_deposit_addresses_r_spec.rb} +6 -6
- data/spec/models/{generate_receiving_address_ri_spec.rb → list_deposit_addresses_ri_spec.rb} +6 -6
- data/spec/models/list_transactions_by_address_ribsbsc_spec.rb +70 -0
- data/spec/models/list_transactions_by_block_hash_ribsbsc_spec.rb +70 -0
- data/spec/models/list_transactions_by_block_height_ribsbsc_gas_price_spec.rb +40 -0
- data/spec/models/list_transactions_by_block_height_ribsbsc_spec.rb +64 -0
- data/spec/models/list_xrp_ripple_transactions_by_address_ri_spec.rb +0 -6
- data/spec/models/transaction_request_approval_data_item_spec.rb +64 -0
- data/spec/models/transaction_request_approval_data_spec.rb +46 -0
- data/spec/models/transaction_request_approval_spec.rb +52 -0
- data/spec/models/transaction_request_broadcasted_data_item_spec.rb +70 -0
- data/spec/models/transaction_request_broadcasted_data_spec.rb +46 -0
- data/spec/models/transaction_request_broadcasted_spec.rb +52 -0
- data/spec/models/transaction_request_fail_data_item_spec.rb +70 -0
- data/spec/models/transaction_request_fail_data_spec.rb +46 -0
- data/spec/models/transaction_request_fail_spec.rb +52 -0
- data/spec/models/transaction_request_mined_data_spec.rb +46 -0
- data/spec/models/transaction_request_mined_spec.rb +52 -0
- data/spec/models/transaction_request_rejection_data_item_spec.rb +64 -0
- data/spec/models/transaction_request_rejection_data_spec.rb +46 -0
- data/spec/models/transaction_request_rejection_spec.rb +52 -0
- metadata +186 -46
- data/docs/GenerateReceivingAddressRBData.md +0 -18
- data/docs/GenerateReceivingAddressRData.md +0 -18
- data/docs/ValidatingApi.md +0 -87
- data/lib/crypto_apis/api/validating_api.rb +0 -108
data/docs/GeneratingApi.md
CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *https://rest.cryptoapis.io/v2*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
7
|
+
| [**generate_deposit_address**](GeneratingApi.md#generate_deposit_address) | **POST** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/addresses | Generate Deposit Address |
|
8
8
|
|
9
9
|
|
10
|
-
##
|
10
|
+
## generate_deposit_address
|
11
11
|
|
12
|
-
> <
|
12
|
+
> <GenerateDepositAddressR> generate_deposit_address(blockchain, network, wallet_id, opts)
|
13
13
|
|
14
|
-
Generate
|
14
|
+
Generate Deposit Address
|
15
15
|
|
16
16
|
Through this endpoint customers can generate a new Receiving/Deposit Addresses into their Wallet.
|
17
17
|
|
@@ -34,33 +34,33 @@ network = 'mainnet' # String | Represents the name of the blockchain network use
|
|
34
34
|
wallet_id = '60c9d9921c38030006675ff6' # String | Represents the unique ID of the specific Wallet.
|
35
35
|
opts = {
|
36
36
|
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.
|
37
|
-
|
37
|
+
generate_deposit_address_rb: CryptoApis::GenerateDepositAddressRB.new({data: CryptoApis::GenerateDepositAddressRBData.new({item: CryptoApis::GenerateDepositAddressRBDataItem.new({label: 'yourLabelStringHere'})})}) # GenerateDepositAddressRB |
|
38
38
|
}
|
39
39
|
|
40
40
|
begin
|
41
|
-
# Generate
|
42
|
-
result = api_instance.
|
41
|
+
# Generate Deposit Address
|
42
|
+
result = api_instance.generate_deposit_address(blockchain, network, wallet_id, opts)
|
43
43
|
p result
|
44
44
|
rescue CryptoApis::ApiError => e
|
45
|
-
puts "Error when calling GeneratingApi->
|
45
|
+
puts "Error when calling GeneratingApi->generate_deposit_address: #{e}"
|
46
46
|
end
|
47
47
|
```
|
48
48
|
|
49
|
-
#### Using the
|
49
|
+
#### Using the generate_deposit_address_with_http_info variant
|
50
50
|
|
51
51
|
This returns an Array which contains the response data, status code and headers.
|
52
52
|
|
53
|
-
> <Array(<
|
53
|
+
> <Array(<GenerateDepositAddressR>, Integer, Hash)> generate_deposit_address_with_http_info(blockchain, network, wallet_id, opts)
|
54
54
|
|
55
55
|
```ruby
|
56
56
|
begin
|
57
|
-
# Generate
|
58
|
-
data, status_code, headers = api_instance.
|
57
|
+
# Generate Deposit Address
|
58
|
+
data, status_code, headers = api_instance.generate_deposit_address_with_http_info(blockchain, network, wallet_id, opts)
|
59
59
|
p status_code # => 2xx
|
60
60
|
p headers # => { ... }
|
61
|
-
p data # => <
|
61
|
+
p data # => <GenerateDepositAddressR>
|
62
62
|
rescue CryptoApis::ApiError => e
|
63
|
-
puts "Error when calling GeneratingApi->
|
63
|
+
puts "Error when calling GeneratingApi->generate_deposit_address_with_http_info: #{e}"
|
64
64
|
end
|
65
65
|
```
|
66
66
|
|
@@ -72,11 +72,11 @@ end
|
|
72
72
|
| **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. | |
|
73
73
|
| **wallet_id** | **String** | Represents the unique ID of the specific Wallet. | |
|
74
74
|
| **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. `context` is specified by the user. | [optional] |
|
75
|
-
| **
|
75
|
+
| **generate_deposit_address_rb** | [**GenerateDepositAddressRB**](GenerateDepositAddressRB.md) | | [optional] |
|
76
76
|
|
77
77
|
### Return type
|
78
78
|
|
79
|
-
[**
|
79
|
+
[**GenerateDepositAddressR**](GenerateDepositAddressR.md)
|
80
80
|
|
81
81
|
### Authorization
|
82
82
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Defines the total balance of the address that is confirmed. It doesn't include unconfirmed transactions. | |
|
8
|
-
| **unit** | **String** |
|
8
|
+
| **unit** | **String** | | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -14,7 +14,7 @@ require 'crypto_apis'
|
|
14
14
|
|
15
15
|
instance = CryptoApis::GetAddressDetailsRIConfirmedBalance.new(
|
16
16
|
amount: 3.5,
|
17
|
-
unit:
|
17
|
+
unit: null
|
18
18
|
)
|
19
19
|
```
|
20
20
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Defines the total amount of all coins received to the address, based on confirmed transactions. | |
|
8
|
-
| **unit** | **String** |
|
8
|
+
| **unit** | **String** | | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -14,7 +14,7 @@ require 'crypto_apis'
|
|
14
14
|
|
15
15
|
instance = CryptoApis::GetAddressDetailsRITotalReceived.new(
|
16
16
|
amount: 5.6,
|
17
|
-
unit:
|
17
|
+
unit: null
|
18
18
|
)
|
19
19
|
```
|
20
20
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Defines the total amount of all spent by this address coins, based on confirmed transactions. | |
|
8
|
-
| **unit** | **String** |
|
8
|
+
| **unit** | **String** | | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -14,7 +14,7 @@ require 'crypto_apis'
|
|
14
14
|
|
15
15
|
instance = CryptoApis::GetAddressDetailsRITotalSpent.new(
|
16
16
|
amount: 2.1,
|
17
|
-
unit:
|
17
|
+
unit: null
|
18
18
|
)
|
19
19
|
```
|
20
20
|
|
@@ -16,6 +16,7 @@ CryptoApis::GetBlockDetailsByBlockHashRIBS.openapi_one_of
|
|
16
16
|
# [
|
17
17
|
# :'GetBlockDetailsByBlockHashRIBSB',
|
18
18
|
# :'GetBlockDetailsByBlockHashRIBSBC',
|
19
|
+
# :'GetBlockDetailsByBlockHashRIBSBSC',
|
19
20
|
# :'GetBlockDetailsByBlockHashRIBSD',
|
20
21
|
# :'GetBlockDetailsByBlockHashRIBSD2',
|
21
22
|
# :'GetBlockDetailsByBlockHashRIBSE',
|
@@ -50,6 +51,7 @@ CryptoApis::GetBlockDetailsByBlockHashRIBS.build(data_that_doesnt_match)
|
|
50
51
|
|
51
52
|
- `GetBlockDetailsByBlockHashRIBSB`
|
52
53
|
- `GetBlockDetailsByBlockHashRIBSBC`
|
54
|
+
- `GetBlockDetailsByBlockHashRIBSBSC`
|
53
55
|
- `GetBlockDetailsByBlockHashRIBSD`
|
54
56
|
- `GetBlockDetailsByBlockHashRIBSD2`
|
55
57
|
- `GetBlockDetailsByBlockHashRIBSE`
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# CryptoApis::GetBlockDetailsByBlockHashRIBSBSC
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **difficulty** | **String** | Represents a mathematical value of how hard it is to find a valid hash for this block. | |
|
8
|
+
| **nonce** | **Integer** | Represents a random value that can be adjusted to satisfy the Proof of Work. | |
|
9
|
+
| **size** | **Integer** | Represents the total size of the block in Bytes. | |
|
10
|
+
| **extra_data** | **String** | Numeric representation of the block extra data | |
|
11
|
+
| **gas_limit** | **String** | Numeric representation of the block gas limit | |
|
12
|
+
| **gas_used** | **String** | Numeric representation of the block gas used | |
|
13
|
+
| **mined_in_seconds** | **Integer** | Numeric representation of the block gas limit | |
|
14
|
+
| **sha3_uncles** | **String** | Numeric representation of the block sha3 uncles | |
|
15
|
+
| **total_difficulty** | **String** | Numeric representation of the block total difficulty | |
|
16
|
+
| **uncles** | **Array<String>** | | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'crypto_apis'
|
22
|
+
|
23
|
+
instance = CryptoApis::GetBlockDetailsByBlockHashRIBSBSC.new(
|
24
|
+
difficulty: 209515044.4071968,
|
25
|
+
nonce: 1535290446,
|
26
|
+
size: 53598,
|
27
|
+
extra_data: null,
|
28
|
+
gas_limit: null,
|
29
|
+
gas_used: null,
|
30
|
+
mined_in_seconds: null,
|
31
|
+
sha3_uncles: null,
|
32
|
+
total_difficulty: null,
|
33
|
+
uncles: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -16,6 +16,7 @@ CryptoApis::GetBlockDetailsByBlockHeightRIBS.openapi_one_of
|
|
16
16
|
# [
|
17
17
|
# :'GetBlockDetailsByBlockHeightRIBSB',
|
18
18
|
# :'GetBlockDetailsByBlockHeightRIBSBC',
|
19
|
+
# :'GetBlockDetailsByBlockHeightRIBSBSC',
|
19
20
|
# :'GetBlockDetailsByBlockHeightRIBSD',
|
20
21
|
# :'GetBlockDetailsByBlockHeightRIBSD2',
|
21
22
|
# :'GetBlockDetailsByBlockHeightRIBSE',
|
@@ -50,6 +51,7 @@ CryptoApis::GetBlockDetailsByBlockHeightRIBS.build(data_that_doesnt_match)
|
|
50
51
|
|
51
52
|
- `GetBlockDetailsByBlockHeightRIBSB`
|
52
53
|
- `GetBlockDetailsByBlockHeightRIBSBC`
|
54
|
+
- `GetBlockDetailsByBlockHeightRIBSBSC`
|
53
55
|
- `GetBlockDetailsByBlockHeightRIBSD`
|
54
56
|
- `GetBlockDetailsByBlockHeightRIBSD2`
|
55
57
|
- `GetBlockDetailsByBlockHeightRIBSE`
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# CryptoApis::GetBlockDetailsByBlockHeightRIBSBSC
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **difficulty** | **String** | Represents a mathematical value of how hard it is to find a valid hash for this block. | |
|
8
|
+
| **nonce** | **Integer** | Represents a random value that can be adjusted to satisfy the Proof of Work | |
|
9
|
+
| **size** | **Integer** | Represents the total size of the block in Bytes. | |
|
10
|
+
| **extra_data** | **String** | Numeric representation of the block extra data | |
|
11
|
+
| **gas_limit** | **String** | Numeric representation of the block gas limit | |
|
12
|
+
| **gas_used** | **String** | Numeric representation of the block gas used | |
|
13
|
+
| **mined_in_seconds** | **String** | Numeric representation of the block gas limit | |
|
14
|
+
| **sha3_uncles** | **String** | Numeric representation of the block sha3 uncles | |
|
15
|
+
| **total_difficulty** | **String** | Numeric representation of the block total difficulty | |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'crypto_apis'
|
21
|
+
|
22
|
+
instance = CryptoApis::GetBlockDetailsByBlockHeightRIBSBSC.new(
|
23
|
+
difficulty: 209515044.4071968,
|
24
|
+
nonce: 1535290446,
|
25
|
+
size: 3892,
|
26
|
+
extra_data: null,
|
27
|
+
gas_limit: null,
|
28
|
+
gas_used: null,
|
29
|
+
mined_in_seconds: null,
|
30
|
+
sha3_uncles: null,
|
31
|
+
total_difficulty: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -16,6 +16,7 @@ CryptoApis::GetLatestMinedBlockRIBS.openapi_one_of
|
|
16
16
|
# [
|
17
17
|
# :'GetLatestMinedBlockRIBSB',
|
18
18
|
# :'GetLatestMinedBlockRIBSBC',
|
19
|
+
# :'GetLatestMinedBlockRIBSBSC',
|
19
20
|
# :'GetLatestMinedBlockRIBSD',
|
20
21
|
# :'GetLatestMinedBlockRIBSD2',
|
21
22
|
# :'GetLatestMinedBlockRIBSE',
|
@@ -50,6 +51,7 @@ CryptoApis::GetLatestMinedBlockRIBS.build(data_that_doesnt_match)
|
|
50
51
|
|
51
52
|
- `GetLatestMinedBlockRIBSB`
|
52
53
|
- `GetLatestMinedBlockRIBSBC`
|
54
|
+
- `GetLatestMinedBlockRIBSBSC`
|
53
55
|
- `GetLatestMinedBlockRIBSD`
|
54
56
|
- `GetLatestMinedBlockRIBSD2`
|
55
57
|
- `GetLatestMinedBlockRIBSE`
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# CryptoApis::GetLatestMinedBlockRIBSBSC
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **difficulty** | **String** | Represents a mathematical value of how hard it is to find a valid hash for this block. | |
|
8
|
+
| **nonce** | **Integer** | Represents a random value that can be adjusted to satisfy the proof of work | |
|
9
|
+
| **size** | **Integer** | Represents the total size of the block in Bytes. | |
|
10
|
+
| **extra_data** | **String** | Numeric representation of the block extra data | |
|
11
|
+
| **gas_limit** | **String** | Numeric representation of the block gas limit | |
|
12
|
+
| **gas_used** | **String** | Numeric representation of the block gas used | |
|
13
|
+
| **mined_in_seconds** | **Integer** | Numeric representation of the block gas limit | |
|
14
|
+
| **sha3_uncles** | **String** | Numeric representation of the block sha3 uncles | |
|
15
|
+
| **total_difficulty** | **String** | Numeric representation of the block total difficulty | |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'crypto_apis'
|
21
|
+
|
22
|
+
instance = CryptoApis::GetLatestMinedBlockRIBSBSC.new(
|
23
|
+
difficulty: 21448277761059.71,
|
24
|
+
nonce: 2113101077,
|
25
|
+
size: 1408113,
|
26
|
+
extra_data: 0xd883010001846765746888676f312e31342e34856c696e757800000000000000eb8c4ee17a97af3c7d18e6cfb87d25bf9a483933d393b4fce778c9a7d64eab76471a8ab92c3a7d131c0f9cfbbd9a54b438c80b491c7a579da0e37db6ca823eda01,
|
27
|
+
gas_limit: 30000000,
|
28
|
+
gas_used: 686304,
|
29
|
+
mined_in_seconds: 3,
|
30
|
+
sha3_uncles: 0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,
|
31
|
+
total_difficulty: 2437536
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -16,6 +16,7 @@ CryptoApis::GetTransactionDetailsByTransactionIDRIBS.openapi_one_of
|
|
16
16
|
# [
|
17
17
|
# :'GetTransactionDetailsByTransactionIDRIBSB',
|
18
18
|
# :'GetTransactionDetailsByTransactionIDRIBSBC',
|
19
|
+
# :'GetTransactionDetailsByTransactionIDRIBSBSC',
|
19
20
|
# :'GetTransactionDetailsByTransactionIDRIBSD',
|
20
21
|
# :'GetTransactionDetailsByTransactionIDRIBSD2',
|
21
22
|
# :'GetTransactionDetailsByTransactionIDRIBSE',
|
@@ -50,6 +51,7 @@ CryptoApis::GetTransactionDetailsByTransactionIDRIBS.build(data_that_doesnt_matc
|
|
50
51
|
|
51
52
|
- `GetTransactionDetailsByTransactionIDRIBSB`
|
52
53
|
- `GetTransactionDetailsByTransactionIDRIBSBC`
|
54
|
+
- `GetTransactionDetailsByTransactionIDRIBSBSC`
|
53
55
|
- `GetTransactionDetailsByTransactionIDRIBSD`
|
54
56
|
- `GetTransactionDetailsByTransactionIDRIBSD2`
|
55
57
|
- `GetTransactionDetailsByTransactionIDRIBSE`
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# CryptoApis::GetTransactionDetailsByTransactionIDRIBSBSC
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **contract** | **String** | Numeric representation of the transaction contract | |
|
8
|
+
| **gas_limit** | **String** | String representation of the transaction gas | |
|
9
|
+
| **gas_price** | [**GetTransactionDetailsByTransactionIDRIBSBSCGasPrice**](GetTransactionDetailsByTransactionIDRIBSBSCGasPrice.md) | | |
|
10
|
+
| **gas_used** | **String** | Numeric representation of the transaction gas used | |
|
11
|
+
| **input_data** | **String** | Numeric representation of the transaction input | |
|
12
|
+
| **nonce** | **String** | Numeric representation of the transaction nonce | |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'crypto_apis'
|
18
|
+
|
19
|
+
instance = CryptoApis::GetTransactionDetailsByTransactionIDRIBSBSC.new(
|
20
|
+
contract: null,
|
21
|
+
gas_limit: null,
|
22
|
+
gas_price: null,
|
23
|
+
gas_used: null,
|
24
|
+
input_data: null,
|
25
|
+
nonce: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# CryptoApis::GetTransactionDetailsByTransactionIDRIBSBSCGasPrice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount** | **String** | Numeric representation of the transaction gas price | |
|
8
|
+
| **unit** | **String** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'crypto_apis'
|
14
|
+
|
15
|
+
instance = CryptoApis::GetTransactionDetailsByTransactionIDRIBSBSCGasPrice.new(
|
16
|
+
amount: null,
|
17
|
+
unit: BNB
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Defines the amount of the transaction fee. | |
|
8
|
-
| **unit** | **String** |
|
8
|
+
| **unit** | **String** | | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
data/docs/InformativeApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://rest.cryptoapis.io/v2*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**get_wallet_asset_details**](InformativeApi.md#get_wallet_asset_details) | **GET** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network} | Get Wallet Asset Details |
|
8
|
-
| [**
|
8
|
+
| [**list_deposit_addresses**](InformativeApi.md#list_deposit_addresses) | **GET** /wallet-as-a-service/wallets/{walletId}/{blockchain}/{network}/addresses | List Deposit Addresses |
|
9
9
|
| [**list_supported_tokens**](InformativeApi.md#list_supported_tokens) | **GET** /wallet-as-a-service/info/{blockchain}/{network}/supported-tokens | List Supported Tokens |
|
10
10
|
|
11
11
|
|
@@ -88,13 +88,13 @@ end
|
|
88
88
|
- **Accept**: application/json
|
89
89
|
|
90
90
|
|
91
|
-
##
|
91
|
+
## list_deposit_addresses
|
92
92
|
|
93
|
-
> <
|
93
|
+
> <ListDepositAddressesR> list_deposit_addresses(blockchain, network, wallet_id, opts)
|
94
94
|
|
95
|
-
List
|
95
|
+
List Deposit Addresses
|
96
96
|
|
97
|
-
Through this endpoint customers can pull a list of Deposit Addresses they have already generated.
|
97
|
+
Through this endpoint customers can pull a list of Deposit/Receiving Addresses they have already generated. {note}Please note that listing data from the same type will apply pagination on the results.{/note}
|
98
98
|
|
99
99
|
### Examples
|
100
100
|
|
@@ -118,29 +118,29 @@ opts = {
|
|
118
118
|
}
|
119
119
|
|
120
120
|
begin
|
121
|
-
# List
|
122
|
-
result = api_instance.
|
121
|
+
# List Deposit Addresses
|
122
|
+
result = api_instance.list_deposit_addresses(blockchain, network, wallet_id, opts)
|
123
123
|
p result
|
124
124
|
rescue CryptoApis::ApiError => e
|
125
|
-
puts "Error when calling InformativeApi->
|
125
|
+
puts "Error when calling InformativeApi->list_deposit_addresses: #{e}"
|
126
126
|
end
|
127
127
|
```
|
128
128
|
|
129
|
-
#### Using the
|
129
|
+
#### Using the list_deposit_addresses_with_http_info variant
|
130
130
|
|
131
131
|
This returns an Array which contains the response data, status code and headers.
|
132
132
|
|
133
|
-
> <Array(<
|
133
|
+
> <Array(<ListDepositAddressesR>, Integer, Hash)> list_deposit_addresses_with_http_info(blockchain, network, wallet_id, opts)
|
134
134
|
|
135
135
|
```ruby
|
136
136
|
begin
|
137
|
-
# List
|
138
|
-
data, status_code, headers = api_instance.
|
137
|
+
# List Deposit Addresses
|
138
|
+
data, status_code, headers = api_instance.list_deposit_addresses_with_http_info(blockchain, network, wallet_id, opts)
|
139
139
|
p status_code # => 2xx
|
140
140
|
p headers # => { ... }
|
141
|
-
p data # => <
|
141
|
+
p data # => <ListDepositAddressesR>
|
142
142
|
rescue CryptoApis::ApiError => e
|
143
|
-
puts "Error when calling InformativeApi->
|
143
|
+
puts "Error when calling InformativeApi->list_deposit_addresses_with_http_info: #{e}"
|
144
144
|
end
|
145
145
|
```
|
146
146
|
|
@@ -155,7 +155,7 @@ end
|
|
155
155
|
|
156
156
|
### Return type
|
157
157
|
|
158
|
-
[**
|
158
|
+
[**ListDepositAddressesR**](ListDepositAddressesR.md)
|
159
159
|
|
160
160
|
### Authorization
|
161
161
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::ListDepositAddressesR
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -7,14 +7,14 @@
|
|
7
7
|
| **api_version** | **String** | Specifies the version of the API that incorporates this endpoint. | |
|
8
8
|
| **request_id** | **String** | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. | |
|
9
9
|
| **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. `context` is specified by the user. | [optional] |
|
10
|
-
| **data** | [**
|
10
|
+
| **data** | [**ListDepositAddressesRData**](ListDepositAddressesRData.md) | | |
|
11
11
|
|
12
12
|
## Example
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'crypto_apis'
|
16
16
|
|
17
|
-
instance = CryptoApis::
|
17
|
+
instance = CryptoApis::ListDepositAddressesR.new(
|
18
18
|
api_version: 2.0,
|
19
19
|
request_id: 601c1710034ed6d407996b30,
|
20
20
|
context: You can add any text here,
|