Skip to main content
GET
/
api
/
v1
/
contract-templates
Get Contract Templates
curl --request GET \
  --url https://sandbox.oumla.com/api/v1/contract-templates \
  --header 'x-api-key: <api-key>'
{
  "result": {
    "data": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "organizationId": "123e4567-e89b-12d3-a456-426614174000",
        "name": "ERC721 Token",
        "description": "Standard ERC721 token contract",
        "longDescription": "<string>",
        "bytecode": "0x608060405234801561001057600080fd5b50...",
        "sourceCode": "<string>",
        "type": "ERC721",
        "docs": {},
        "attributes": {},
        "abi": [
          {
            "name": "transfer",
            "stateMutability": "nonpayable",
            "type": "function",
            "inputs": [
              {}
            ],
            "outputs": [
              {}
            ],
            "description": "<string>"
          }
        ],
        "createdAt": "2024-01-01T00:00:00.000Z",
        "updatedAt": "2024-01-01T00:00:00.000Z"
      }
    ],
    "next": 20,
    "count": 100
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your API key from the dashboard.

Headers

x-sdk-version
string
default:1.0.0

SDK version header

Query Parameters

skip
integer
default:0

Number of records to skip

Required range: x >= 0
take
integer
default:10

Number of records to take

Required range: 1 <= x <= 100

Response

Successfully retrieved contract templates

Contract templates response object

result
object