Create Automatic Coins Forwarding
Through this endpoint customers can set up an automatic forwarding function specifically for coins (not tokens). They can have a toAddress
which is essentially the main address and the destination for the automatic coins forwarding.
There is also a minimumTransferAmount
which only when reached will then trigger the forwarding. Through this the customer can save from fees.
Moreover, feePriority
can be also set, which defines how quickly to move the coins once they are received. The higher priority, the larger the fee will be. It can be "SLOW", "STANDARD" or "FAST".
The response of this endpoint contains an attribute fromAddress
which can be used as a deposit address. Any funds received by this address will be automatically forwarded to toAddress
based on what the customer has set for the automation.
For this automatic forwarding the customer can set a callback subscription.
fromAddress
each time.Path Parameters
-
Requiredblockchain string
Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
-
Requirednetwork 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" are test networks.
Query parameters
-
Optionalcontext 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.
Request body schema application/json
-
Optionalcontext 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. -
Requireddata object
-
Requireditem object
-
RequiredcallbackSecretKey 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. For more information please see our Documentation.
-
RequiredcallbackUrl string
Represents the URL that is set by the customer where the callback will be received at. The callback notification will be received only if and when the event occurs.
We support ONLY httpS type of protocol
. -
RequiredconfirmationsCount integer
Represents the number of confirmations, i.e. the amount of blocks that have been built on top of this block.
-
RequiredfeePriority string
Represents the fee priority of the automation, whether it is "slow", "standard" or "fast".
-
RequiredminimumTransferAmount string
Represents the minimum transfer amount of the currency in the
fromAddress
that can be allowed for an automatic forwarding. -
RequiredtoAddress string
Represents the hash of the address the currency is forwarded to.
-
-
Response schema
Content-Type: application/json
The resource has been successfully created.
Object :
-
RequiredapiVersion string
Specifies the version of the API that incorporates this endpoint.
Example : 2021-03-20 -
RequiredrequestId string
Defines the ID of the request. The
requestId
is generated by Crypto APIs and it's unique for every request.Example : 601c1710034ed6d407996b30 -
Optionalcontext 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.Example : yourExampleString -
Requireddata object
-
Requireditem object
-
RequiredcallbackUrl string
Represents the URL that is set by the customer where the callback will be received at. The callback notification will be received only if and when the event occurs.
We support ONLY httpS type of protocol
.Example : https://example.com -
RequiredconfirmationsCount integer
Represents the number of confirmations, i.e. the amount of blocks that have been built on top of this block.
Example : 3 -
RequiredcreatedTimestamp integer
Defines the specific time/date when the automatic forwarding was created in Unix Timestamp.
Example : 1611238648 -
RequiredfeePriority string
Represents the fee priority of the automation, whether it is "SLOW", "STANDARD" OR "FAST".
Example : standard -
RequiredfromAddress string
Represents the hash of the address that forwards the currency.
Example : mzAsK3csTnozLnYVdca4gaoH1btBZBC6QB -
RequiredminimumTransferAmount string
Represents the minimum transfer amount of the currency in the
fromAddress
that can be allowed for an automatic forwarding.Example : 0.0002 -
RequiredreferenceId string
Represents a unique ID used to reference the specific callback subscription.
Example : 6017c964973cdcf4d4f69e29 -
RequiredtoAddress string
Represents the hash of the address the currency is forwarded to.
Example : mzYijhgmzZrmuB7wBDazRKirnChKyow4M3
-
-
Callback parameters Method : POST
Content-Type : application/json
Object :
-
RequiredapiVersion string
Specifies the version of the API that incorporates this endpoint.
Example : 2021-03-20 -
RequiredreferenceId 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.
Example : 6038d09050653d1f0e40584c -
RequiredidempotencyKey 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.
Example : e55bf7a4a7188855f1c27541a6c387d04cc3b22ee34d1304b0e6ecad61c9906c -
Requireddata object
Specifies all data, as attributes, included into the callback notification, which depends on the
event
.-
Requiredproduct string
Represents the Crypto APIs 2.0 product which sends the callback.
Example : BLOCKCHAIN_AUTOMATIONS -
Requiredevent string
Defines the specific event, for which a callback subscription is set.
Example : COINS_FORWARDING_SUCCESS -
Requireditem object
Defines an
item
as one result.-
Requiredblockchain string
Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc.
Example : bitcoin -
Requirednetwork 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.
Example : testnet -
RequiredfromAddress string
Represents the hash of the address that provides the coins.
Example : mmd963W1fECjLyaDCHcioSCZYHkRwjkGST -
RequiredtoAddress string
Represents the hash of the address to forward the coins to.
Example : ms4KNsbNpoU8g424pzmEjbkFbfAHae1msB -
RequiredforwardedAmount string
Represents the amount of coins that have been forwarded.
Example : 00059441 -
RequiredforwardedUnit string
Represents the unit of coins that have been forwarded, e.g. BTC.
Example : BTC -
RequiredspentFeesAmount string
Represents the amount of the fee spent for the coins to be forwarded.
Example : 0.00022827 -
RequiredspentFeesUnit string
Represents the unit of the fee spent for the coins to be forwarded, e.g. BTC.
Example : BTC -
RequiredtriggerTransactionId string
Defines the unique Transaction ID that triggered the coin forwarding.
Example : 86a7546bde4ac28b34504909d138592a6d6fc1277ea1f8f2f9c75dc04bdf3b7b -
RequiredforwardingTransactionId string
Defines the unique Transaction ID that forwarded the coins.
Example : 2241b5264fac8acb92e9fc597035b99cdd22f6578d63c6f52b099729f7c4f979
-
-