Create a new Web3 contract with administrative privileges. Requires tenant admin access. Replaces POST /contract
PERS-api Documentation (2.0.12)
PERS API Documentation
This RESTful API enables seamless integration of Web3 loyalty, token management, and engagement features into your applications.
Usage Guidelines:
- RESTful Design: Resources are accessed via standard HTTP methods (GET, POST, PUT, DELETE) with predictable, resource-oriented URLs.
- Authentication: Secure access is enforced via Bearer Tokens (JWT) and Project Keys (defining the Tenant context).
- Data Format: All requests and responses utilize standard JSON formatting.
Explore the modules below for detailed endpoint specifications, schemas, and testing capabilities.
this is implementation address, the address of the contract that is being used as implementation for the proxy. This is only used for proxy contracts
this is the address of the factory contract that deploys this contract
this is the type of the contract
this is the native token type of the contract, this is only used for native tokens
this is the salt of the contract, this is only used for proxy contract factories to generate unique contracts
this is the transaction hash of the contract deployment, this is only used for deployed contracts
- Mock serverhttps://docs.pers.ninja/_mock/swagger/contracts
- Production APIhttps://api.pers.ninja/v2/contracts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.pers.ninja/_mock/swagger/contracts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"implementationAddress": "string",
"contractAddress": "string",
"ownerAddress": "string",
"factoryAddress": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"chainId": 0,
"contractVersion": "string",
"contractType": "SMART_WALLET_FACTORY",
"nativeTokenType": "ERC20",
"salt": "string",
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"isProxy": true,
"abiUrl": "string",
"deploymentStatus": "COMPUTED"
}'Contract created successfully
this is implementation address, the address of the contract that is being used as implementation for the proxy. This is only used for proxy contracts
this is the address of the factory contract that deploys this contract
this is the type of the contract
this is the native token type of the contract, this is only used for native tokens
this is the salt of the contract, this is only used for proxy contract factories to generate unique contracts
this is the transaction hash of the contract deployment, this is only used for deployed contracts
current deployment status of the contract
this is the abi of the contract, this is the interface of the contract to interact with it
{ "implementationAddress": "string", "contractAddress": "string", "ownerAddress": "string", "factoryAddress": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "chainId": 0, "contractVersion": "string", "contractType": "SMART_WALLET_FACTORY", "nativeTokenType": "ERC20", "salt": "string", "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "isProxy": true, "abiUrl": "string", "deploymentStatus": "COMPUTED", "id": "string", "abi": {}, "tenantId": {} }