Skip to main content
POST
/
transactions
/
sign
Sign a generic transaction
curl --request POST \
  --url http://localhost:4000/v1/transactions/sign \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "signWith": "account-abc123",
  "unsignedTransaction": "0x...",
  "type": "TRANSACTION_TYPE_ETHEREUM"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "transactionId": "tx-uuid-abc123",
    "signedTransaction": "0x...",
    "status": "pending",
    "from": "0x123...",
    "to": "0x456...",
    "amount": "1.5",
    "chainId": 43114,
    "tokenAddress": "0x...",
    "expiresAt": "2024-01-01T12:15:00Z",
    "createdAt": "2024-01-01T12:00:00Z"
  },
  "statusCode": 123,
  "timestamp": "<string>",
  "path": "<string>"
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Body

application/json

Transaction signing parameters

signWith
string
required

Wallet account ID or address to sign the transaction with

Example:

"account-abc123"

unsignedTransaction
string
required

Raw unsigned transaction to be signed (hex string)

Example:

"0x..."

type
enum<string>
required

Transaction type

Available options:
TRANSACTION_TYPE_ETHEREUM,
TRANSACTION_TYPE_SOLANA,
TRANSACTION_TYPE_TRON
Example:

"TRANSACTION_TYPE_ETHEREUM"

Response

success
boolean
required
message
string
required
statusCode
number
required
timestamp
string
required
data
object
path
string