Create an API key
trnch_registerStep 2 of 2: send the message returned in step 1 and its signature; returns { key, prefix, wallet } with status 201. The key is shown once, store it. 3 keys max per wallet (409); up to 10 new keys per IP per day; 120 calls per minute per IP across keys; 400 if the message expired or was altered, 401 if the signature does not match.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>",
"message": "<message>",
"signature": "<signature>"
},
"name": "trnch_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional referral code of the agent's builder: its owner earns a share of the fees of this key's swaps. | |
| label | No | Optional name for the key, e.g. the agent name. | |
| wallet | Yes | Same wallet as in trnch_register_message. | |
| message | Yes | The message returned in step 1, unchanged. | |
| signature | Yes | personal_sign signature of message by wallet. |