https://api.fordefi.com/
These endpoints allow you to get information about users in your Fordefi organization.
There are several types of users in the Fordefi platform:
Users can have one of three possible roles, which define the permissions that the user is given:
The Users API is currently read-only. To add/remove users, visit the Fordefi web console.
These endpoints allow you to manually trigger your pre-configured webhooks.
Use Webhooks describes how to configure webhooks, validate them, and resend them.
These endpoints allow you to list the contacts in your address book.
To add/remove contacts, visit the Fordefi web console. See the user guide for more info.
These endpoints allow you to manage transactions on the Fordefi platform.
A transaction represents an operation that can be one of the following:
These endpoints allow you to manage batch transactions on the Fordefi platform.
Batch transactions are currently supported only on Solana, for the purpose of supporting the signAllTransactions
flow used by certain Solana DApps. Batch transactions undergo policy evaluation as a whole: the policy is applied to a “virtual transaction” whose list of instructions is the union of the instructions of the individual transactions in the batch, and whose balance changes are the aggregation of balance changes of the individual transactions.
These endpoints allow you to manage vaults.
A vault is the basic unit to manage funds. Each vault supports a single "chain family", such as EVM, Bitcoin, Solana, Cosmos, etc., determined by the vault's type. A vault supports all the chains within the chain family (e.g., an EVM vault supports all EVM chains).
These endpoints allow you to view your vault groups.
Vault Groups are used to collectively manage policies and view permissions for a group of vaults.
The API is read-only. To manage vault groups, visit the Fordefi web console. See more info in the user guide.
These endpoints allow you to get information about the assets in your organization, including metadata, balances, and prices.
Fordefi supports native assets and fungible tokens on each of the supported blockchains, and on many chains also non-fungible tokens.
Assets are chain-specific, meaning that USDC on Ethereum is different from USDC on Polygon.
https://api.fordefi.com/api/v1/assets/owned-assets/{id}
curl -i -X GET \
'https://api.fordefi.com/api/v1/assets/owned-assets/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "asset": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "decimals": 0, "price": { … }, "name": "string", "symbol": "string", "hidden": true, "verified": true, "asset_identifier": { … }, "metadata_uri": "string", "type": "cosmos_asset", "details": { … } }, "priced_asset": { "type": "asset_price", "asset_identifier": { … }, "asset_info": { … }, "price": { … } }, "balance": "1000000000000000000", "balances": { "mined": "1000000000000000000", "pending_incoming": "1000000000000000000" } }
https://api.fordefi.com/api/v1/assets/owned-assets
curl -i -X GET \
'https://api.fordefi.com/api/v1/assets/owned-assets?asset_ids=497f6eca-6276-4993-bfeb-53cbbbba6f08&chains=string&end_user_ids=497f6eca-6276-4993-bfeb-53cbbbba6f08&is_hidden=true&page=1&search=string&size=50&sort_by=asset_name_asc&vault_ids=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "total": 0, "page": 0, "size": 0, "owned_assets": [ { … } ] }
The address of the ERC-20 asset to update.
True
to hide the token when listing assets, False
otherwise.
https://api.fordefi.com/api/v1/assets
curl -i -X PUT \
https://api.fordefi.com/api/v1/assets \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"asset": {
"type": "aptos",
"details": {
"type": "native",
"chain": "aptos_mainnet"
}
},
"hidden": true
}'
https://api.fordefi.com/api/v1/assets/prices
curl -i -X POST \
https://api.fordefi.com/api/v1/assets/prices \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"asset_identifiers": [
{
"type": "aptos",
"details": {
"type": "native",
"chain": "aptos_mainnet"
}
}
]
}'
{ "priced_assets": [ { … } ] }
The asset identifier to enrich.
https://api.fordefi.com/api/v1/assets/asset-infos
curl -i -X POST \
https://api.fordefi.com/api/v1/assets/asset-infos \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"asset_identifier": {
"type": "aptos",
"details": {
"type": "native",
"chain": "aptos_mainnet"
}
}
}'
Successful Response
The asset identifier.
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "asset_identifier": { "type": "aptos", "details": { … }, "chain": { … } }, "name": "string", "symbol": "string", "decimals": 0, "verified": true, "metadata_uri": "string", "is_spam": true, "logo_url": "http://example.com", "explorer_url": "http://example.com" }
These endpoints allow you to view your user groups.
User Groups are used to collectively manage policies and view permissions for a group of users.
The API is read-only. To manage user groups, visit the Fordefi web console. See more info in the user guide.