Create a new contract template
cURL
curl --request POST \ --url https://sandbox.oumla.com/api/v1/contract-templates \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "bytecode": "<string>", "abi": [ {} ], "longDescription": "<string>", "sourceCode": "<string>", "type": "<string>", "docs": {}, "attributes": {} } '
200
Example
{ "contract": { "id": "123e4567-e89b-12d3-a456-426614174000", "name": "ERC721 Token", "description": "Standard ERC721 token contract", "longDescription": "<string>", "bytecode": "0x608060405234801561001057600080fd5b50...", "sourceCode": "<string>", "type": "<string>", "docs": {} } }
API key for authentication. Obtain your API key from the dashboard.
SDK version header
Request body for create contract template
Create contract request object
Contract template successfully created
Contract template response object
Show child attributes
Was this page helpful?