Skip to main content
POST
/
transactions
/
sign
/
transfer
/
native
Sign a native token transfer
curl --request POST \
  --url http://localhost:4000/v1/transactions/sign/transfer/native \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "0x123...",
  "to": "0x456...",
  "amount": "1.5",
  "chainId": 43114,
  "signWith": "account-abc123",
  "gasPrice": "25000000000",
  "gasLimit": "21000"
}'
{
  "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

Native transfer parameters

to
string
required

Destination address

Example:

"0x456..."

amount
string
required

Amount to transfer (in decimal format)

Example:

"1.5"

chainId
number
required

Chain ID

Example:

43114

from
string

Source account address or walletAccountId

Example:

"0x123..."

signWith
string

Account to sign with (if from is not provided)

Example:

"account-abc123"

gasPrice
string

Gas price (optional, will be estimated if not provided)

Example:

"25000000000"

gasLimit
string

Gas limit (optional, will be estimated if not provided)

Example:

"21000"

Response

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