API ReferenceBlockchain API

Blockchain API

Specialized API for blockchain interactions, smart contract deployments, and on-chain data queries.

The Blockchain API provides direct access to blockchain functionality including smart contract deployment, transaction broadcasting, and gas estimation across all supported EVM chains.

Interactive API Reference

Overview

The Blockchain API provides direct access to blockchain functionality including:

  • Smart Contract Deployment - Deploy contracts across multiple chains
  • Transaction Broadcasting - Submit signed transactions to the network
  • Event Monitoring - Real-time blockchain event subscription
  • Gas Estimation - Calculate gas costs before submitting transactions

Use Cases

💡

Deploy smart contracts to any supported EVM chain with a single API call.

const response = await fetch('https://api.integra.dev/v1/blockchain/deploy', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    chain_id: 137, // Polygon
    bytecode: '0x608060405234801561001057600080fd5b50...',
    abi: [{
      "inputs": [],
      "stateMutability": "nonpayable",
      "type": "constructor"
    }],
    constructor_args: []
  })
});
 
const result = await response.json();
console.log('Contract deployed at:', result.contract_address);

Returns the deployed contract address and transaction hash.

Supported Chains

All EVM-compatible chains are supported. See the Universal API for the complete list of supported chains including:

  • Polygon (137)
  • Ethereum (1)
  • Arbitrum (42161)
  • Optimism (10)
  • And 50+ more chains