Skip to content

Reuse an Existing Deployment

If you’ve already registered a contract deployment, you can look it up and reuse it for calling or querying methods without registering again. This guide shows how to search and retrieve deployments by various filters.

Before you begin, ensure:

  • The contract deployment was registered previously
  • You know at least one of the following: name, contractAddress, or abiId
GET /v2/contract/deployment
GET /v2/contract/deployment?name=MyContract&chainId=137&isShared=true
search-deployments.sh
```bash
curl -X GET "https://api.fsco.io/v2/contract/deployment?name=MyContract&chainId=137&isShared=true" \
-H "Authorization: Bearer $FSCO_API_KEY"
response.json
{
"response": [
{
"deploymentId": "{{deploymentId}}",
"chainId": 1234,
"abiId": "{{abiId}}",
"contractAddress": "{{contractAddress}}",
"name": "{{name}}"
}
],
"page": {
"limit": 10,
"offset": 0,
"total": 1
}
}

The search supports filters including:

  • name: Partial or full match on deployment name
  • contractAddress: One or more addresses
  • chainId: CAIP-compatible numeric chain ID
  • abiId: One or more ABI UUIDs
  • isShared: Whether to filter for shared deployments
GET /v2/contract/deployment/{deploymentId}
get-deployment.sh
curl -X GET https://api.fsco.io/v2/contract/deployment/{{deploymentId}} \
-H "Authorization: Bearer $FSCO_API_KEY"
response.json
{
"deploymentId": "{{deploymentId}}",
"chainId": 137,
"abiId": "{{abiId}}",
"contractAddress": "{{contractAddress}}",
"name": "{{name}}"
}

This provides all metadata needed to execute or query methods against the deployment, including abiId, chainId, contractAddress, and name.

Now that you have the deployment details, you can use them to call or query methods.