Execute token-layer action
Token Layer
Execute token-layer action
Generic action endpoint for Token Layer handlers.
Supported actions:
- register
- createToken
- tradeToken
- sendTransaction
- transferToken
- claimRewards
- createReferralCode
- enterReferralCode
- mintUsd
Authentication modes:
- JWT bearer
- API key bearer
- Wallet signature bearer (Authorization: Bearer 0x…)
For wallet-signature auth:
- signature must be a valid EIP-712 signature over the typed request payload
- nonce is timestamp in milliseconds
- expiresAfter is expiration window in milliseconds
- action.message and action.signature are required for register action
- action.message must include a 13-digit millisecond timestamp (e.g. “timestamp: 1737600000000”)
- action.message timestamp must exactly match nonce and be within expiresAfter
POST
Execute token-layer action
See the integration guide for action-by-action examples and flow:
Authorizations
JWT token or API key
Body
application/json
- Register
- Create Token
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
Envelope for register action
Environment indicator included in typed-data payload
Available options:
Mainnet, Testnet Expiration window in milliseconds
Required range:
x > 0Example:
300000
Register a new wallet address with Token Layer
Nonce timestamp in milliseconds. Required for wallet-signature authentication.
Required range:
x > 0Example:
1737600000000
Required when using wallet signature auth (Bearer wallet address)
Pattern:
^0x[a-fA-F0-9]{130}$Example:
"0x5f2a..."
Required when using wallet signature auth. EIP-712 domain chainId in hex.
Pattern:
^0x[0-9a-fA-F]+$Example:
"0x1"
Response
Successful response
- Register Response
- Create Token Response
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
