POST
/
transactions
curl --request POST \
  --url https://api.coinfi.zone/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "sender_address",
  "to": "receiver_address",
  "amount": "50",
  "nonce": 123456,
  "signature": "signature_string"
}'
{
  "from": "<string>",
  "to": "<string>",
  "amount": "<string>",
  "txHash": "<string>"
}

This endpoint allows you to submit a new transaction to the CoinFi blockchain.

Request Details

  • URL: https://api.coinfi.zone/transactions
  • Method: POST
  • Content-Type: application/json

Required Fields

  • from: Sender address
  • to: Receiver address
  • amount: Transaction amount (as a string)
  • nonce: Transaction nonce (integer)
  • signature: Digital signature of the transaction

Example Request

curl -X POST "https://api.coinfi.zone/transactions" -H "Content-Type: application/json" -d '{
  "from": "sender_address",
  "to": "receiver_address",
  "amount": "50",
  "nonce": 123456,
  "signature": "signature_string"
}'

Make sure your payload includes all required fields, and verify that the signature is generated correctly.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Transaction details to be submitted.
from
string
required

Sender address

to
string
required

Receiver address

amount
string
required

Transaction amount

nonce
integer
required

Transaction nonce

signature
string
required

Digital signature of the transaction

txHash
string

Transaction hash

Response

200
application/json
Transaction response.
from
string
required

Sender address

to
string
required

Receiver address

amount
string
required

Transaction amount

txHash
string

Transaction hash