Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
export const API_URL = "http://localhost:8081";
export const Contract = {
owner: "0x634B0510C5062CFf8009eAAc2435eB93bc4764ad",
address: "0xAdB05de6171954541D832E6E40303FEE0420B20c", // Polygon mainet
// address: "0x1bCb97c2242A66CD3FC6875d979fD11CF9Feedd0", // Goerli testnet
abi: [{
"inputs": [{
"internalType": "address",
"name": "treasuryAddress",
"type": "address"
}],
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"inputs": [],
"name": "ApprovalCallerNotOwnerNorApproved",
"type": "error"
}, {
"inputs": [],
"name": "ApprovalQueryForNonexistentToken",
"type": "error"
}, {
"inputs": [],
"name": "BalanceQueryForZeroAddress",
"type": "error"
}, {
"inputs": [],
"name": "MintERC2309QuantityExceedsLimit",
"type": "error"
}, {
"inputs": [],
"name": "MintToZeroAddress",
"type": "error"
}, {
"inputs": [],
"name": "MintZeroQuantity",
"type": "error"
}, {
"inputs": [],
"name": "OwnerQueryForNonexistentToken",
"type": "error"
}, {
"inputs": [],
"name": "OwnershipNotInitializedForExtraData",
"type": "error"
}, {
"inputs": [],
"name": "TransferCallerNotOwnerNorApproved",
"type": "error"
}, {
"inputs": [],
"name": "TransferFromIncorrectOwner",
"type": "error"
}, {
"inputs": [],
"name": "TransferToNonERC721ReceiverImplementer",
"type": "error"
}, {
"inputs": [],
"name": "TransferToZeroAddress",
"type": "error"
}, {
"inputs": [],
"name": "URIQueryForNonexistentToken",
"type": "error"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "Approval",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
}, {
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}],
"name": "ApprovalForAll",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "uint256",
"name": "fromTokenId",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "toTokenId",
"type": "uint256"
}, {
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}],
"name": "ConsecutiveTransfer",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "OwnershipTransferred",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "Transfer",
"type": "event"
}, {
"inputs": [],
"name": "MAX_TOKENS",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "approve",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}],
"name": "balanceOf",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "flipSaleState",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "getApproved",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "address",
"name": "operator",
"type": "address"
}],
"name": "isApprovedForAll",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "maxTokenPerWallet",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "maxTokenPurchase",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "numberOfTokens",
"type": "uint256"
}, {
"internalType": "string",
"name": "_tokenURI",
"type": "string"
}],
"name": "mintToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [],
"name": "name",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "owner",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "ownerOf",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [],
"name": "saleIsActive",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "operator",
"type": "address"
}, {
"internalType": "bool",
"name": "approved",
"type": "bool"
}],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "_maxTokens",
"type": "uint256"
}],
"name": "setMaxTokensPurchase",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "_maxTokens",
"type": "uint256"
}],
"name": "setMaxTokensWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "treasuryAddress",
"type": "address"
}],
"name": "setTreasuryAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}],
"name": "supportsInterface",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "symbol",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "tokenPrice",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "tokenURI",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "totalSupply",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}],
"name": "transferFrom",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "newOwner",
"type": "address"
}],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}]
}