Create Token
Introduction
Token Issuance (create_token): Create a new token contract.
Parameters
Request Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| jsonrpc | string | Fixed value:2.0 |
| method | string | Method name. Fixed value: create_token |
| decimals | int | Decimal precision |
| masterAuthority | string | Token owner address |
| name | string | Token name |
| nonce | int | Nonce |
| recentCheckpoint | int | Block height |
| symbol | string | Token symbol |
| signature | object | Signature result |
Request Example:
{
"jsonrpc": "2.0",
"method": "create_token",
"params": {
"decimals": 8,
"masterAuthority": "0x...",
"name": "Test Token",
"nonce": 0,
"recentCheckpoint": 12345,
"symbol": "TEST",
"signature": {
"r": "string",
"s": "string",
"v": "string"
}
},
"id": 1
}Response Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| hash | string | Transaction hash |
| token | string | Token address |
Response Example:
{
"jsonrpc": "2.0",
"result": {
"hash": "0x99870c5993f21acece6e3f91c868bbd109658ea94cfdc86ea3329320da92c1f1",
"token": "0xD30F7f291DD21B06dE132FAe98A9333Ce5EC7631"
},
"id": 1
}Updated 3 months ago
