Documentation

TRANSFER

Withdrawing funds from the wallet or address.
The withdrawal process consists of two steps:
- Creating a transaction with the sender's address(es), network fee, and recipient's address specified.
- Broadcasting the created transaction to the network.

You can also withdraw funds from the personal account.


CREATE TRANSFER

The method creates a package for submission to the network and returns it upon request if there are sufficient withdrawal funds and network fees.
We recommend using the personal account for performing transactions. This method is intended for automating transactions and is designed for experienced users.
Request
HTTP Method: POST
Content Type: application/json
URL: https://api.apiforcrypto.com/api/v1/wallets/{id}/txs/new

Parameter Type Description Required
wallet id string Wallet ID yes
blockchain string blockchain name yes
seed_hash string seed_hash yes
contract_address string Contract Address no
addresses array Array of payout addresses. You can specify one or multiple addresses.. If no address is filled, the payout will be made from the entire wallet no
outputs array Array with the destination payment address and the payment amount. Here you can specify multiple addresses. The system will automatically calculate the network fee and generate the change amount to your wallet address. yes
value int Payment amount. yes

Request example

Success Response Reference
HTTP Status Code: 200

Parameter Type Description
hash string Transaction hash
fees int Network fees
inputs array Array of data included in the transaction.
output_value int Total transaction amount.
outputs array Destination addresses and the corresponding credited amounts, including change.
hex string Transaction hex
Response example
Error response
HTTP Status Code:
403 - Currency is not active / Min value send .. / Wrong seed hash
404 - Wallet not found / Accounts to send funds not found
500 - Internal Server Error
Content Type: - application/json


Create TX Endpoint Parameter
Wallet ID
Blockchain
Contract Address
From
To
Value (in satoshis)
Seed HASH


SEND TRANSFER

The method sends the prepared transaction package to the network.
Request
HTTP Method: POST
Content Type: application/json
URL: https://api.apiforcrypto.com/api/v1/wallets/{id}/txs/send

Parameter Type Description Required
id string Wallet ID yes
blockchain string blockchain name yes
contract_address string Contract Address no
hex string Transaction hex yes
Request example
Success Response Reference
HTTP Status Code: 200
Error response
HTTP Status Code:
404 - Wallet not found
500 - Internal Server Error
Content Type: - application/json


Create TX Endpoint Parameter
Wallet ID
Blockchain
Contract Address
HEX