Encode a auction template and return the payload to be signed and sent raw to the blockchain
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": "<unknown>",
"token_uri": "ipfs://",
"beneficiaries": []
},
"debug": false
}
'{
"result": {
"encoded_payload": "<unknown>",
"params": {
"governance_factory": "<unknown>",
"governance_factory_data": "<unknown>",
"pool_initializer": "<unknown>",
"pool_initializer_data": "<unknown>",
"liquidity_migrator": "<unknown>",
"liquidity_migrator_data": "<unknown>",
"integrator": "<unknown>",
"salt": "<unknown>",
"initial_supply": "<string>",
"num_tokens_to_sell": "<string>",
"numeraire": "<unknown>",
"token_factory": "<unknown>",
"token_factory_data": "<unknown>"
},
"hook_address": "<unknown>",
"token_address": "<unknown>"
}
}API key for authentication
The chain ID of the auction to create
Body
The auction template ID (from the Long Team)
Show child attributes
The name of the token (e.g. 'My Token')
The symbol of the token (e.g. 'MTK')
The address of the owner of the token (e.g. '0x123...')
The URI of the token (e.g. 'ipfs://...')
Whether to include debug information in the response
200
Show child attributes
The encoded payload of the auction, to be signed and sent raw to the blockchain
Show child attributes
The pre-minted hook address
The pre-minted token address
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": "<unknown>",
"token_uri": "ipfs://",
"beneficiaries": []
},
"debug": false
}
'{
"result": {
"encoded_payload": "<unknown>",
"params": {
"governance_factory": "<unknown>",
"governance_factory_data": "<unknown>",
"pool_initializer": "<unknown>",
"pool_initializer_data": "<unknown>",
"liquidity_migrator": "<unknown>",
"liquidity_migrator_data": "<unknown>",
"integrator": "<unknown>",
"salt": "<unknown>",
"initial_supply": "<string>",
"num_tokens_to_sell": "<string>",
"numeraire": "<unknown>",
"token_factory": "<unknown>",
"token_factory_data": "<unknown>"
},
"hook_address": "<unknown>",
"token_address": "<unknown>"
}
}