Deploy a Token
After creating a token and generating a smart contract for it, you need to deploy the token smart contract.
You will send a POST request to the /token
endpoint, using the :deploy
method to deploy the contract.
Deploy the token contract.
POST
https://api.playfix.io/token/<token_name>:deploy
Path Parameters
token_name*
String
An automatically generated token name
. This will start with a prefix of "tokens/" followed by a ULID.
Example: tokens/01gfrf15n9hqw3v08sqearsgh9
Headers
Authorization*
String
Bearer <your_bearer_token>
Request Body
clientSide*
Object
Client side configuration for deploying the token contract.
clientSide.address*
String
The smart contract address; automatically generated by MetaMask.
Example cURL API Call
Example Python API Call
Request Body
clientSide
: An object containing the configurations for deploying the token smart contract using MetaMask.network
: The network where the token will be deployed.address
: The smart contract address. This is automatically generated by MetaMask.txHash
: A temporary transaction hash generated by MetaMask.
Response
Once you deploy a token, you can no longer modify or delete the token or token contract.
Last updated