Encode a auction template and return the payload to be signed and sent raw to the blockchain
cURL
curl --request POST \ --url https://api.long.xyz/v1/auction-templates \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "template_id": "<string>", "metadata": { "token_name": "<string>", "token_symbol": "<string>", "user_address": "<string>", "token_uri": "ipfs://", "beneficiaries": [] }, "debug": false } '
{ "result": { "encoded_payload": "<string>", "params": { "governance_factory": "<string>", "governance_factory_data": "<string>", "pool_initializer": "<string>", "pool_initializer_data": "<string>", "liquidity_migrator": "<string>", "liquidity_migrator_data": "<string>", "integrator": "<string>", "salt": "<string>", "initial_supply": "<string>", "num_tokens_to_sell": "<string>", "numeraire": "<string>", "token_factory": "<string>", "token_factory_data": "<string>" }, "hook_address": "<string>", "token_address": "<string>" } }
API key for authentication
The chain ID of the auction to create
Body
The auction template ID (from the Long Team)
Show child attributes
Whether to include debug information in the response
200