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
@@ -0,0 +1,22 @@
|
|
1
|
+
# CryptoApis::BroadcastTransactionSuccessDataItem
|
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
|
+
| **transaction_id** | **String** | Defines the unique ID of the specific transaction, i.e. its identification number. | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'crypto_apis'
|
15
|
+
|
16
|
+
instance = CryptoApis::BroadcastTransactionSuccessDataItem.new(
|
17
|
+
blockchain: Bitcoin/Ethereum (whichever applicable),
|
18
|
+
network: Testnet/Mainnet (whichever applicable),
|
19
|
+
transaction_id: 347d96855d41b77f1e23048fff11c18e9fe699ee69b0b402338f34189734e0a2
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -5,8 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Represents the specific amount of the transaction. | |
|
8
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | [optional] |
|
9
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | [optional] |
|
8
10
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
9
|
-
| **
|
11
|
+
| **recipient_address** | **String** | Defines the specific recipient address for the transaction. | |
|
10
12
|
|
11
13
|
## Example
|
12
14
|
|
@@ -15,8 +17,10 @@ require 'crypto_apis'
|
|
15
17
|
|
16
18
|
instance = CryptoApis::CreateCoinsTransactionRequestFromAddressRBDataItem.new(
|
17
19
|
amount: 0.2,
|
20
|
+
callback_secret_key: yourSecretString,
|
21
|
+
callback_url: https://example.com,
|
18
22
|
fee_priority: slow,
|
19
|
-
|
23
|
+
recipient_address: 0xc065b539490f81b6c297c37b1925c3be2f190732
|
20
24
|
)
|
21
25
|
```
|
22
26
|
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | [optional] |
|
8
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | [optional] |
|
7
9
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
8
10
|
| **recipients** | [**Array<CreateCoinsTransactionRequestFromAddressRIRecipients>**](CreateCoinsTransactionRequestFromAddressRIRecipients.md) | Defines the destination for the transaction, i.e. the recipient(s). | |
|
9
11
|
| **senders** | [**CreateCoinsTransactionRequestFromAddressRISenders**](CreateCoinsTransactionRequestFromAddressRISenders.md) | | |
|
@@ -15,6 +17,8 @@
|
|
15
17
|
require 'crypto_apis'
|
16
18
|
|
17
19
|
instance = CryptoApis::CreateCoinsTransactionRequestFromAddressRI.new(
|
20
|
+
callback_secret_key: yourSecretString,
|
21
|
+
callback_url: https://example.com,
|
18
22
|
fee_priority: standard,
|
19
23
|
recipients: null,
|
20
24
|
senders: null,
|
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | [optional] |
|
8
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | [optional] |
|
8
9
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
10
|
+
| **recipients** | [**Array<CreateCoinsTransactionRequestFromWalletRBDataItemRecipients>**](CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.md) | Defines the destination of the transaction, whether it is incoming or outgoing. | |
|
9
11
|
|
10
12
|
## Example
|
11
13
|
|
@@ -13,8 +15,10 @@
|
|
13
15
|
require 'crypto_apis'
|
14
16
|
|
15
17
|
instance = CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItem.new(
|
16
|
-
|
17
|
-
|
18
|
+
callback_secret_key: yourSecretKey,
|
19
|
+
callback_url: https://example.com,
|
20
|
+
fee_priority: standard,
|
21
|
+
recipients: null
|
18
22
|
)
|
19
23
|
```
|
20
24
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemRecipients
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **address** | **String** | Defines the specific destination address. | |
|
7
|
+
| **address** | **String** | Defines the specific recipient/destination address. | |
|
8
8
|
| **amount** | **String** | Represents the specific amount of the transaction's destination. | |
|
9
9
|
|
10
10
|
## Example
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'crypto_apis'
|
14
14
|
|
15
|
-
instance = CryptoApis::
|
15
|
+
instance = CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.new(
|
16
16
|
address: 0x6f61e3c2fbb8c8be698bd0907ba6c04b62800fe5,
|
17
17
|
amount: 0.125
|
18
18
|
)
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | [optional] |
|
8
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | [optional] |
|
7
9
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
8
10
|
| **recipients** | [**Array<CreateCoinsTransactionRequestFromWalletRIRecipients>**](CreateCoinsTransactionRequestFromWalletRIRecipients.md) | Defines the destination of the transaction, whether it is incoming or outgoing. | |
|
9
11
|
| **total_transaction_amount** | **String** | Represents the specific amount of the transaction. | |
|
@@ -15,6 +17,8 @@
|
|
15
17
|
require 'crypto_apis'
|
16
18
|
|
17
19
|
instance = CryptoApis::CreateCoinsTransactionRequestFromWalletRI.new(
|
20
|
+
callback_secret_key: yourSecretKey,
|
21
|
+
callback_url: https://example.com,
|
18
22
|
fee_priority: standard,
|
19
23
|
recipients: null,
|
20
24
|
total_transaction_amount: 0.001,
|
@@ -5,8 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **amount** | **String** | Represents the specific amount of the transaction. | |
|
8
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | [optional] |
|
9
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | [optional] |
|
8
10
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
9
|
-
| **
|
11
|
+
| **recipient_address** | **String** | Defines the specific recipient address for the transaction. | |
|
10
12
|
| **token_identifier** | **String** | Defines the specific token identifier. For Bitcoin-based transactions it should be the `propertyId` and for Ethereum-based transactions - the `contract`. | |
|
11
13
|
|
12
14
|
## Example
|
@@ -16,8 +18,10 @@ require 'crypto_apis'
|
|
16
18
|
|
17
19
|
instance = CryptoApis::CreateTokensTransactionRequestFromAddressRBDataItem.new(
|
18
20
|
amount: 0.2,
|
21
|
+
callback_secret_key: yourSecretString,
|
22
|
+
callback_url: https://example.com,
|
19
23
|
fee_priority: standard,
|
20
|
-
|
24
|
+
recipient_address: 0xc065b539490f81b6c297c37b1925c3be2f190732,
|
21
25
|
token_identifier: 1
|
22
26
|
)
|
23
27
|
```
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **callback_secret_key** | **String** | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. | |
|
8
|
+
| **callback_url** | **String** | Verified URL for sending callbacks | |
|
7
9
|
| **fee_priority** | **String** | Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\". | |
|
8
10
|
| **recipients** | [**Array<CreateTokensTransactionRequestFromAddressRIRecipients>**](CreateTokensTransactionRequestFromAddressRIRecipients.md) | Defines the destination for the transaction, i.e. the recipient(s). | |
|
9
11
|
| **senders** | [**CreateTokensTransactionRequestFromAddressRISenders**](CreateTokensTransactionRequestFromAddressRISenders.md) | | |
|
@@ -15,6 +17,8 @@
|
|
15
17
|
require 'crypto_apis'
|
16
18
|
|
17
19
|
instance = CryptoApis::CreateTokensTransactionRequestFromAddressRI.new(
|
20
|
+
callback_secret_key: yourSecretString,
|
21
|
+
callback_url: https://example.com,
|
18
22
|
fee_priority: fast,
|
19
23
|
recipients: 0x1316bea88fb7cd4ccc4a57e2f9f4f43d1a86ee59,
|
20
24
|
senders: null,
|
data/docs/FeaturesApi.md
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
# CryptoApis::FeaturesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://rest.cryptoapis.io/v2*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**broadcast_locally_signed_transaction**](FeaturesApi.md#broadcast_locally_signed_transaction) | **POST** /blockchain-tools/{blockchain}/{network}/transactions/broadcast | Broadcast Locally Signed Transaction |
|
8
|
+
| [**validate_address**](FeaturesApi.md#validate_address) | **POST** /blockchain-tools/{blockchain}/{network}/addresses/validate | Validate Address |
|
9
|
+
|
10
|
+
|
11
|
+
## broadcast_locally_signed_transaction
|
12
|
+
|
13
|
+
> <BroadcastLocallySignedTransactionR> broadcast_locally_signed_transaction(blockchain, network, opts)
|
14
|
+
|
15
|
+
Broadcast Locally Signed Transaction
|
16
|
+
|
17
|
+
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.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'crypto_apis'
|
24
|
+
# setup authorization
|
25
|
+
CryptoApis.configure do |config|
|
26
|
+
# Configure API key authorization: ApiKey
|
27
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = CryptoApis::FeaturesApi.new
|
33
|
+
blockchain = 'bitcoin' # String | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
|
34
|
+
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.
|
35
|
+
opts = {
|
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
|
+
broadcast_locally_signed_transaction_rb: CryptoApis::BroadcastLocallySignedTransactionRB.new({data: CryptoApis::BroadcastLocallySignedTransactionRBData.new({item: CryptoApis::BroadcastLocallySignedTransactionRBDataItem.new({callback_url: 'https://example.com', signed_transaction_hex: '0xf86a22827d00831e8480941b85a43e2e7f52e766ddfdfa2b901c42cb1201be8801b27f33b807c0008029a084ccbf02b27e0842fb1eda7a187a5589c3759be0e969e0ca989dc469a5e5e394a02e111e1156b197f1de4c1d9ba4af26e50665ea6d617d05b3e4047da12b915e69'})})}) # BroadcastLocallySignedTransactionRB |
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
# Broadcast Locally Signed Transaction
|
42
|
+
result = api_instance.broadcast_locally_signed_transaction(blockchain, network, opts)
|
43
|
+
p result
|
44
|
+
rescue CryptoApis::ApiError => e
|
45
|
+
puts "Error when calling FeaturesApi->broadcast_locally_signed_transaction: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the broadcast_locally_signed_transaction_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
52
|
+
|
53
|
+
> <Array(<BroadcastLocallySignedTransactionR>, Integer, Hash)> broadcast_locally_signed_transaction_with_http_info(blockchain, network, opts)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
# Broadcast Locally Signed Transaction
|
58
|
+
data, status_code, headers = api_instance.broadcast_locally_signed_transaction_with_http_info(blockchain, network, opts)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => <BroadcastLocallySignedTransactionR>
|
62
|
+
rescue CryptoApis::ApiError => e
|
63
|
+
puts "Error when calling FeaturesApi->broadcast_locally_signed_transaction_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **blockchain** | **String** | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. | |
|
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
|
+
| **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] |
|
74
|
+
| **broadcast_locally_signed_transaction_rb** | [**BroadcastLocallySignedTransactionRB**](BroadcastLocallySignedTransactionRB.md) | | [optional] |
|
75
|
+
|
76
|
+
### Return type
|
77
|
+
|
78
|
+
[**BroadcastLocallySignedTransactionR**](BroadcastLocallySignedTransactionR.md)
|
79
|
+
|
80
|
+
### Authorization
|
81
|
+
|
82
|
+
[ApiKey](../README.md#ApiKey)
|
83
|
+
|
84
|
+
### HTTP request headers
|
85
|
+
|
86
|
+
- **Content-Type**: application/json
|
87
|
+
- **Accept**: application/json
|
88
|
+
|
89
|
+
|
90
|
+
## validate_address
|
91
|
+
|
92
|
+
> <ValidateAddressR> validate_address(blockchain, network, opts)
|
93
|
+
|
94
|
+
Validate Address
|
95
|
+
|
96
|
+
This endpoint checks user public addresses whether they are valid or not.
|
97
|
+
|
98
|
+
### Examples
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
require 'time'
|
102
|
+
require 'crypto_apis'
|
103
|
+
# setup authorization
|
104
|
+
CryptoApis.configure do |config|
|
105
|
+
# Configure API key authorization: ApiKey
|
106
|
+
config.api_key['ApiKey'] = 'YOUR API KEY'
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
+
# config.api_key_prefix['ApiKey'] = 'Bearer'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = CryptoApis::FeaturesApi.new
|
112
|
+
blockchain = 'bitcoin' # String | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
|
113
|
+
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.
|
114
|
+
opts = {
|
115
|
+
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.
|
116
|
+
validate_address_rb: CryptoApis::ValidateAddressRB.new({data: CryptoApis::ValidateAddressRBData.new({item: CryptoApis::ValidateAddressRBDataItem.new({address: 'mho4jHBcrNCncKt38trJahXakuaBnS7LK5'})})}) # ValidateAddressRB |
|
117
|
+
}
|
118
|
+
|
119
|
+
begin
|
120
|
+
# Validate Address
|
121
|
+
result = api_instance.validate_address(blockchain, network, opts)
|
122
|
+
p result
|
123
|
+
rescue CryptoApis::ApiError => e
|
124
|
+
puts "Error when calling FeaturesApi->validate_address: #{e}"
|
125
|
+
end
|
126
|
+
```
|
127
|
+
|
128
|
+
#### Using the validate_address_with_http_info variant
|
129
|
+
|
130
|
+
This returns an Array which contains the response data, status code and headers.
|
131
|
+
|
132
|
+
> <Array(<ValidateAddressR>, Integer, Hash)> validate_address_with_http_info(blockchain, network, opts)
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
begin
|
136
|
+
# Validate Address
|
137
|
+
data, status_code, headers = api_instance.validate_address_with_http_info(blockchain, network, opts)
|
138
|
+
p status_code # => 2xx
|
139
|
+
p headers # => { ... }
|
140
|
+
p data # => <ValidateAddressR>
|
141
|
+
rescue CryptoApis::ApiError => e
|
142
|
+
puts "Error when calling FeaturesApi->validate_address_with_http_info: #{e}"
|
143
|
+
end
|
144
|
+
```
|
145
|
+
|
146
|
+
### Parameters
|
147
|
+
|
148
|
+
| Name | Type | Description | Notes |
|
149
|
+
| ---- | ---- | ----------- | ----- |
|
150
|
+
| **blockchain** | **String** | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. | |
|
151
|
+
| **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. | |
|
152
|
+
| **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] |
|
153
|
+
| **validate_address_rb** | [**ValidateAddressRB**](ValidateAddressRB.md) | | [optional] |
|
154
|
+
|
155
|
+
### Return type
|
156
|
+
|
157
|
+
[**ValidateAddressR**](ValidateAddressR.md)
|
158
|
+
|
159
|
+
### Authorization
|
160
|
+
|
161
|
+
[ApiKey](../README.md#ApiKey)
|
162
|
+
|
163
|
+
### HTTP request headers
|
164
|
+
|
165
|
+
- **Content-Type**: application/json
|
166
|
+
- **Accept**: application/json
|
167
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::GenerateDepositAddressR
|
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** | [**GenerateDepositAddressRData**](GenerateDepositAddressRData.md) | | |
|
11
11
|
|
12
12
|
## Example
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'crypto_apis'
|
16
16
|
|
17
|
-
instance = CryptoApis::
|
17
|
+
instance = CryptoApis::GenerateDepositAddressR.new(
|
18
18
|
api_version: 2.0,
|
19
19
|
request_id: 601c1710034ed6d407996b30,
|
20
20
|
context: You can add any text here,
|
@@ -1,18 +1,18 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::GenerateDepositAddressRB
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **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] |
|
8
|
-
| **data** | [**
|
8
|
+
| **data** | [**GenerateDepositAddressRBData**](GenerateDepositAddressRBData.md) | | |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
13
|
require 'crypto_apis'
|
14
14
|
|
15
|
-
instance = CryptoApis::
|
15
|
+
instance = CryptoApis::GenerateDepositAddressRB.new(
|
16
16
|
context: null,
|
17
17
|
data: null
|
18
18
|
)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CryptoApis::GenerateDepositAddressRBData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **item** | [**GenerateDepositAddressRBDataItem**](GenerateDepositAddressRBDataItem.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'crypto_apis'
|
13
|
+
|
14
|
+
instance = CryptoApis::GenerateDepositAddressRBData.new(
|
15
|
+
item: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::GenerateDepositAddressRBDataItem
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'crypto_apis'
|
13
13
|
|
14
|
-
instance = CryptoApis::
|
14
|
+
instance = CryptoApis::GenerateDepositAddressRBDataItem.new(
|
15
15
|
label: yourLabelStringHere
|
16
16
|
)
|
17
17
|
```
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CryptoApis::GenerateDepositAddressRData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **item** | [**GenerateDepositAddressRI**](GenerateDepositAddressRI.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'crypto_apis'
|
13
|
+
|
14
|
+
instance = CryptoApis::GenerateDepositAddressRData.new(
|
15
|
+
item: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# CryptoApis::
|
1
|
+
# CryptoApis::GenerateDepositAddressRI
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
```ruby
|
14
14
|
require 'crypto_apis'
|
15
15
|
|
16
|
-
instance = CryptoApis::
|
16
|
+
instance = CryptoApis::GenerateDepositAddressRI.new(
|
17
17
|
address: 0xe2b5f5e885a268e4b6faae53f99a663f3bb3e036,
|
18
18
|
created_timestamp: 1624028267,
|
19
19
|
label: yourLabelStringHere
|