Skip to content

Create Transaction

POST Request

To create a transaction you must create a POST request.

https://speedcrypto.pro/merchant/get_address

Headings

Accept: application/json

Content-Type: application/json

* - required headers. Without them, you will not be able to get the correct answer.

Options

nametypedescription

crypto *

string

Available values: TON, TRON, USDT, SOLANA

network

string

Use for USDT only. Available networks: TRC20

amount *

double

Amount to be paid in store currency (If the amount contains kopecks, then send them with the separator "." Example: 100.23

api_key *

string

Your API key.

Answer Examples

Success - 200

                        {
                            "order_id": "ID123456",
                            "crypto": "USDT",
                            "address": "wallet_address",
                            "network": "TRC20",
                            "amount": 100.23
                        }
Failed - 400, 401, 429 and other

                          If the response code is different, then there may be a problem on the API server side or you have exceeded the limit.
                            We recommend taking such situations into account in your code.

Rate Limit: 10 request per second

Ready Code Examples

Ready Examples Code For TON:

Python Code:

                        import requests
                        from http import HTTPStatus
                        
                        url = "https://speedcrypto.pro/merchant/get_address" 
                        crypto = "TON" 
                        amount = 100.23 
                        api_key = "your_api_key" 
                        
                        response = requests.post(url, json={"crypto":crypto, "amount":amount, "api_key":api_key})
                        
                        if response.status_code == HTTPStatus.OK:
                            print(response.json())
                        else:
                            print("Something went wrong...")