{
"contract": {
"source": {
"main": "//...",
"imports": {
@opengsn/contracts/src/BaseRelayRecipient.sol: "..."
@opengsn/contracts/src/interfaces/IRelayRecipient.sol: "..."
@openzeppelin/contracts/access/AccessControl.sol: "..."
@openzeppelin/contracts/access/IAccessControl.sol: "..."
@openzeppelin/contracts/governance/utils/IVotes.sol: "..."
@openzeppelin/contracts/governance/utils/IVotes.sol: "..."
@openzeppelin/contracts/interfaces/IERC3156FlashBorrower.sol: "..."
@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol: "..."
@openzeppelin/contracts/security/Pausable.sol: "..."
@openzeppelin/contracts/token/ERC20/IERC20.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol: "...
}
},
"abi": "[{...}, {...}, {...}, ...]",
"bytecode": "0x...",
}
}
curl --request GET \
--url https://api.playfix.io/token/<token_name>/contract \
--header 'Authorization: Bearer <your_access_token>'
import requests
r = requests.get(
"https://api.playfix.io/token/<token_name>/contract",
headers = {
"Authorization": "Bearer <your_access_token>"
}
)
print(r.text)
{
"contract": {
"source": {
"main": "//...",
"imports": {
@opengsn/contracts/src/BaseRelayRecipient.sol: "..."
@opengsn/contracts/src/interfaces/IRelayRecipient.sol: "..."
@openzeppelin/contracts/access/AccessControl.sol: "..."
@openzeppelin/contracts/access/IAccessControl.sol: "..."
@openzeppelin/contracts/governance/utils/IVotes.sol: "..."
@openzeppelin/contracts/governance/utils/IVotes.sol: "..."
@openzeppelin/contracts/interfaces/IERC3156FlashBorrower.sol: "..."
@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol: "..."
@openzeppelin/contracts/security/Pausable.sol: "..."
@openzeppelin/contracts/token/ERC20/IERC20.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol: "..."
@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol: "...
}
},
"abi": "[{...}, {...}, {...}, ...]",
"bytecode": "0x...",
}
}