Skip to main content
GET
/
stocks
/
api
/
fetch
/
{tokenAddress}
/
can-transfer
curl "https://api.trusset.org/stocks/api/fetch/0x1234.../can-transfer?from=0xAbC1...&to=0x9876...&amount=100" \
  -H "X-API-Key: trusset_abc123xy_secret..."
{
  "success": true,
  "data": {
    "allowed": true,
    "from": "0xAbC123dEf456789012345678901234567890AbCd",
    "to": "0x9876543210fedcba9876543210fedcba98765432",
    "amount": "100"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Pre-flight check that evaluates on-chain compliance rules, identity verification status, and balance constraints to determine if a transfer would be allowed. Use this before submitting transfer transactions to avoid on-chain reverts.

Path Parameters

tokenAddress
string
required
Address of the stock token contract.

Query Parameters

from
string
required
Sender wallet address.
to
string
required
Receiver wallet address.
amount
string
required
Transfer amount as a human-readable string. Must be greater than zero.

Response Fields

success
boolean
Request status.
data
object
Transfer eligibility result.
curl "https://api.trusset.org/stocks/api/fetch/0x1234.../can-transfer?from=0xAbC1...&to=0x9876...&amount=100" \
  -H "X-API-Key: trusset_abc123xy_secret..."
{
  "success": true,
  "data": {
    "allowed": true,
    "from": "0xAbC123dEf456789012345678901234567890AbCd",
    "to": "0x9876543210fedcba9876543210fedcba98765432",
    "amount": "100"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}