Importing
Remove Import
Revoke an import record from your instance
DELETE
/
external-tokens
/
api
/
{tokenAddress}
curl -X DELETE "https://api.trusset.org/external-tokens/api/0x9f8c1d4b2e7a3056c1b8f4d29e0a7c3518b6d24f" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": { "removed": true }
}
{
"success": false,
"data": null,
"error": {
"code": "IMPORT_NOT_FOUND",
"message": "External import not found"
}
}
Revokes the import. The record stops being active, the token disappears from List Imports, and the slot it held against the 200 import limit is freed.
Path Parameters
string
required
The imported contract address.
Response Fields
What removal does not do
Nothing on chain changes. Trusset never held the token, so there is nothing to return and no transaction to sign.A lending market already deployed against this token keeps running. It reads the chain and its own market record, neither of which is the import. Loans stay open, collateral stays locked, and liquidation still works.What removal does block is a new deployment: Deploy Market refuses a token that is not an active import, with
404 IMPORT_NOT_FOUND. Removing an import is therefore a way to stop new markets, not a way to unwind existing ones.Removal is a revocation, not a deletion. Importing the same address again creates a fresh active record, and the chain-read fields are detected from scratch at that point.
curl -X DELETE "https://api.trusset.org/external-tokens/api/0x9f8c1d4b2e7a3056c1b8f4d29e0a7c3518b6d24f" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": { "removed": true }
}
{
"success": false,
"data": null,
"error": {
"code": "IMPORT_NOT_FOUND",
"message": "External import not found"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
INVALID_ADDRESS | 400 | tokenAddress is not a valid address |
IMPORT_NOT_FOUND | 400 | No active import for that address on your instance. Removing an already-removed import answers the same way |
⌘I
curl -X DELETE "https://api.trusset.org/external-tokens/api/0x9f8c1d4b2e7a3056c1b8f4d29e0a7c3518b6d24f" \
-H "X-API-Key: trusset_your_key_here"
{
"success": true,
"data": { "removed": true }
}
{
"success": false,
"data": null,
"error": {
"code": "IMPORT_NOT_FOUND",
"message": "External import not found"
}
}
