Create a new Web3 contract with administrative privileges. Requires tenant admin access. Replaces POST /contract
PERS-api docs (2.0.2)
https://docs.pers.ninja/_mock/swagger/
https://api.pers.ninja/v2/
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 server
https://docs.pers.ninja/_mock/swagger/contracts
https://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": {} }