CARV 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 21쪽 중 10쪽

Endpoint `GET /ai-agent-backend/token_info` #### Parameters | Name | Location | Type | Required | Description | | ------------- | -------- | ------ | -------- | -------------------------- | | ticker | query | string | No | The token's ticker symbol. | | Authorization | header | string | Yes | Login token in Redis. | #### Example Request (HTTP) ```http curl -X GET "https://interface.carv.io/ai-agent-backend/token_info?ticker=aave" \ -H "Content-Type: application/json" \ -H "Authorization: <YOUR_AUTH_TOKEN>" ``` #### Example Request (Shell) ```bash curl -X GET "https://interface.carv.io/ai-agent-backend/token_info?ticker=aave" \ -H "Authorization: your_token_here" ``` #### Example Request (JavaScript) ```javascript fetch('https://interface.carv.io/ai-agent-backend/token_info?ticker=aave', { method: 'GET', headers: { 'Authorization': 'your_token_here' } }) .then(response => response.json()) .then(data => console.log(data)); ``` #### Example Response (200 OK) ```json { "code": 0, "msg": "Success", "data": { "ticker": "aave", "symbol": "aave", "name": "Aave", "platform": "ethereum", "categories": [ "Decentralized Finance (DeFi)", "Governance", "Yield Farming", "BNB Chain Ecosystem", "Lending/Borrowing Protocols", "Avalanche Ecosystem", "Polygon Ecosystem", "Near Protocol Ecosystem", "Fantom Ecosystem", "Harmony Ecosystem", "Arbitrum Ecosystem", "Ethereum Ecosystem", "Optimism Ecosystem", "Index Coop Defi Index", "Energi Ecosystem", "Sora Ecosystem", "Huobi ECO Chain Ecosystem", "GMCI DeFi Index", "Blockchain Capital Portfolio", "Index Coop Index", "GMCI Index", "World Liberty Financial Portfolio" ], "contract_infos": [ { "platform": "near-protocol", "address": "7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9.factory.bridge.near" }, { "platform": "huobi-token", "address": "0x202b4936fe1a82a4965220860ae46d7d3939bb25" }, { "platform": "fantom", "address": "0x6a07a792ab2965c72a5b8088d3a069a7ac3a993b" }, { "platform": "energi", "address": "0xa7f2f790355e0c32cab03f92f6eb7f488e6f049a" }, { "platform": "binance-smart-chain", "address": "0xfb6115445bff7b52feb98650c87f44907e58f802" }, { "platform": "ethereum", "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" }, { "platform": "optimistic-ethereum", "address": "0x76fb31fb4af56892a25e32cfc43de717950c9278" }, { "platform": "polygon-pos", "address": "0xd6df932a45c0f255f85145f286ea0b292b21c90b" }, { "platform": "harmony-shard-0", "address": "0xcf323aad9e522b93f11c352caa519ad0e14eb40f" }, { "platform": "arbitrum-one", "address": "0xba5ddd1f9d7f570dc94a51479a000e3bce967196" }, { "platform": "avalanche", "address": "0x63a72806098bd3d9520cc43356dd78afe5d386d9" }, { "platform": "sora", "address": "0x0091bd8d8295b25cab5a7b8b0e44498e678cfc15d872ede3215f7d4c7635ba36" } ], "price": 12.34 } } ``` #### Example Response (400 Bad Request) ```json { "error": "Invalid token ticker." } ``` #### Response Data Schema **HTTP Status Code: 200 OK** <table><thead><tr><th width="160">Name</th><th width="106">Type</th><th width="97">Required</th><th width="97">Restrictions</th><th>Title</th><th>Description</th></tr></thead><tbody><tr><td>code</td><td>integer</td><td>Yes</td><td>None</td><td>Response Code</td><td>The status code of the response.</td></tr><tr><td>msg</td><td>string</td><td>Yes</td><td>None</td><td>Response Message</td><td>A descriptive message about the response.</td></tr><tr><td>data</td><td>object</td><td>Yes</td><td>None</td><td>Token Data</td><td>The data object containing token details.</td></tr><tr><td>data.ticker</td><td>string</td><td>Yes</td><td>None</td><td>Ticker Symbol</td><td>The token’s ticker symbol.</td></tr><tr><td>data.symbol</td><td>string</td><td>Yes</td><td>None</td><td>Symbol</td><td>The token’s symbol.</td></tr><tr><td>data.name</td><td>string</td><td>Yes</td><td>None</td><td>Name</td><td>The token’s name.</td></tr><tr><td>data.platform</td><td>string</td><td>Yes</td><td>None</td><td>Platform</td><td>The blockchain platform of the token.</td></tr><tr><td>data.categories</td><td>array of strings</td><td>Yes</td><td>None</td><td>Categories</td><td>The categories associated with the token.</td></tr><tr><td>data.contract_infos</td><td>array of objects</td><td>Yes</td><td>None</td><td>Contract Info</td><td>The contract information for different platforms.</td></tr><tr><td>data.price</td><td>number</td><td>Yes</td><td>None</td><td>Price</td><td>The token's price in USD.</td></tr></tbody></table> **HTTP Status Code: 400 Bad Request** <table><thead><tr><th>Name</th><th width="100">Type</th><th width="109">Required</th><th width="128">Restrictions</th><th width="89">Title</th><th width="211">Description</th></tr></thead><tbody><tr><td>error</td><td>string</td><td>Yes</td><td>None</td><td>Error</td><td>Error message indicating the issue with the request.</td></tr></tbody></table> # User Balance by Twitter ID {% hint style="info" %} This endpoint relies on CARV ID to establish the relationship between the provided Twitter ID and the corresponding blockchain address. If the specified twitter\_user\_id is not connected to any address through CARV ID, the API will not be able to retrieve the expected result. Ensure that the Twitter account is properly linked to a blockchain address via CARV ID before making a request. {% endhint %} ### GET UserBalanceByTwitter #### Endpoint `GET /ai-agent-backend/user_balance_by_twitter_id` #### Parameters | Name | Location | Type | Required | Description | | ----------------- | -------- | ------ | -------- | --------------------------------- | | twitter\_user\_id | query | string | no | Twitter handle | | chain\_name | query | string | no | Blockchain name, e.g., "ethereum" | | token\_ticker | query | string | no | Token ticker, e.g., "ETH" | | Authorization | header | string | yes | Login token in Redis | **Description** * **chain\_name**: Supported values include `"ethereum_mainnet"`, `"base_mainnet"`, `"solana_mainnet"`, `"opbnb_mainnet"` (and all testnets as well). #### Example Request (HTTP) ```http GET /ai-agent-backend/user_balance_by_twitter_id?twitter_user_id=123456&chain_name=ethereum_testnet&token_ticker=aave Authorization: <your-auth-token> ``` #### Example Request (Shell) ```bash curl -X GET "https://interface.carv.io/ai-agent-backend/user_balance_by_twitter_id" \ -H "Authorization: <your-auth-token>" \ -d "twitter_user_id=123456" \ -d "chain_name=ethereum_mainnet" \ -d "token_ticker=eth" ``` #### Example Request (JavaScript) ```javascript const fetch = require('node-fetch'); const url = 'https://interface.carv.io/ai-agent-backend/user_balance_by_twitter_id'; const params = new URLSearchParams({ twitter_user_id: '123456', chain_name: 'ethereum_testnet', token_ticker: 'eth' }); const options = { method: 'GET', headers: { 'Authorization': '<your-auth-token>' } }; fetch(`${url}?${params.toString()}`, options) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error)); ``` 4o #### Example Response (200 OK) ```json { "code": 0, "msg": "Success", "data": { "balance": "0.010000" } } ``` **Error Response (400):** ```json jsonCopy code{ "error": "Invalid request" } ``` #### Responses | HTTP Status Code | Meaning | Description | Data Schema | | ---------------- | ---------------------------------------------------------------- | ----------- | ----------- | | 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none | Inline | | 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | none | Inline | #### Response Data Schema **HTTP Status Code 200** | Name | Type | Required | Restrictions | Title | Description | | ------- | ------- | -------- | ------------ | ----- | ---------------- | | code | integer | true | none | | Response code | | msg | string | true | none | | Response message | | data | object | true | none | | Response data | | balance | string | true | none | | User balance | **HTTP Status Code 400** | Name | Type | Required | Restrictions | Title | Description | | ----- | ------ | -------- | ------------ | ----- | ----------------- | | error | string | true | none | | Error description | # User Balance by Discord ID {% hint style="info" %} This endpoint relies on CARV ID to establish the relationship between the provided Discord ID and the corresponding blockchain address. If the specified discord\_user\_id is not connected to any address through CARV ID, the API will not be able to retrieve the expected result. Ensure that the Discord account is properly linked to a blockchain address via CARV ID before making a request. {% endhint %} ### GET UserBalanceByDiscordID GET /ai-agent-backend/user\_balance\_by\_discord\_id #### Params | Name | Location | Type | Required | Description | | ----------------- | -------- | ------ | -------- | -------------------- | | discord\_user\_id | query | string | no | none | | chain\_name | query | string | no | "ethereum" | | token\_ticker | query | string | no | none | | Authorization | header | string | yes | login token in redis | | Origin | header | string | yes | none | **Description** * **chain\_name**: Supported values include `"ethereum_mainnet"`, `"base_mainnet"`, `"solana_mainnet"`, `"opbnb_mainnet"` (and all testnets as well). #### Example Request (HTTP) ```http GET /ai-agent-backend/user_balance_by_discord_id?discord_user_id=123456&chain_name=ethereum_testnet&token_ticker=aave Authorization: <your-auth-token> ``` > Response Examples ```json { "code": 0, "msg": "Success", "data": { "balance": "0.010000" } } ``` > 400 Response ```json { "error": "string" } ``` #### Responses | HTTP Status Code | Meaning | Description | Data schema | | ---------------- | ---------------------------------------------------------------- | ----------- | ----------- | | 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none | Inline | | 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | none | Inline | #### Responses Data Schema HTTP Status Code **200** | Name | Type | Required | Restrictions | Title | description | | ---------- | ------- | -------- | ------------ | ----- | ----------- | | » code | integer | true | none | | none | | » msg | string | true | none | | none | | » data | object | true | none | | none | | »» balance | string | true | none | | none | HTTP Status Code **400** | Name | Type | Required | Restrictions | Title | description | | ------- | ------ | -------- | ------------ | ----- | ----------- | | » error | string | true | none | | none | # Source code The source code for the **D.A.T.A Framework** is available on GitHub: 👉 [**GitHub Repository: Eliza D.A.T.A**](https://github.com/carv-protocol/eliza-d.a.t.a/tree/carv/dev) This implementation is built as a **plugin for Eliza**, leveraging its capabilities to provide a robust foundation for AI agents to access and process on-chain and off-chain data using the **D.A.T.A Framework**. The current implementation enables AI agents to utilize structured tags, on-chain metrics, and CARV ID for intelligent decision-making and interaction. ## **Future Development** The D.A.T.A plugin will continue to evolve with the following goals: * **Support for New Frameworks**: Expand compatibility beyond Eliza to integrate with leading AI agent platforms like **ZerePy**, **Rig**, and **Virtual**. * **Enhanced Features**: Introduce additional metrics, deeper on-chain analytics, and cross-chain interoperability to enrich AI agents’ capabilities. * **Privacy and Trust**: Strengthen TEE and CARV Verifier Node integration to ensure secure and trustless operation. ## **How to Contribute** Developers are encouraged to explore the repository and contribute to the project by: * Extending support for additional AI agent frameworks. * Enhancing existing features, such as advanced metrics and data tagging. * Proposing new use cases or integrations. Get started by visiting the repository: 👉 [**GitHub Repository: Eliza D.A.T.A**](https://github.com/carv-protocol/eliza-d.a.t.a/tree/carv/dev) The **D.A.T.A Framework** is designed to grow with the AI agent ecosystem, and your contributions can help shape its future. Join us in building the next generation of decentralized intelligence! # CARV Play CARV: VERB. cut (a hard material) in order to make important things recorded and lasting; sculpt and shape one's skillset and technique. [CARV Play](https://carv.io/) is an AI-powered gaming Super App built on top of the CARV Protocol, enabling gamers with seamless credential-based gaming experiences and empowering games with data-driven growth & intelligence.&#x20; ## CARV Play is: #### **The First Cross-Platform Achievement System** CARV Play ensures gamer data privacy and sovereignty by converting all your gaming achievements into verifiable SBTs (Soul bound Tokens), storing your in-game achievements, memories, and journeys across all games and gaming platforms.&#x20; #### **The Largest Web3 Gaming Platform** CARV Play features 600+ top notch and rewarding NFT games with detailed information and game reviews from seasoned gamers alike. CARV Play hosts exclusive partnership events with rewards including USDT, NFTs, and physical items, allowing gamers to play and earn at the same time. #### **The Most Engaging and Genuine Gaming Community** Join the vibrant CARV community with millions of gamers, connect with gaming influencers, make gaming friends, compete in community game events, and win prizes. ## **Key Features for Gamers:** #### **Credential-Based Player Profile and Soulbound NFT Badges** * **Cross-Platform Account Binding** Bind your gaming accounts directly from your profile page. For instance, connect your Steam account to verify in-game data and earn exclusive NFTs (Soulbound NFT Badges) forever belonging to you, hard proof of you. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fb1SRDmKa9DjS2wPh94kk%2Fimg_v2_28578d77-df0d-4f73-8d59-3a4be5e52bag.jpg?alt=media&amp;token=2223b2c4-ad49-4899-bb35-aab126454eeb" alt="CARV Profile"><figcaption><p>CARV Profile</p></figcaption></figure> * **Soulbound NFT Badges** Known as Soulbound Tokens, these non-transferable NFTs validate your gaming experiences and traits, forming the foundation of your gaming credentials. As you reach game milestones and engage in game-hosted events, you earn additional Badges, bolstering your credentials and enriching your gaming identity. CARV categorize soulbound NFT badges into Achievement Badges, Event Badges, Membership Badges, and Generative Archive Tokens (GAT). * **Achievement Badges**: Achievement badges signify your in-game accomplishments with no time limit for claiming; you can claim them whenever you meet the specific criteria. CARV also introduces a series of achievement badges, grouped by required behaviors on CARV. You can unlock and upgrade your badges as you progress. Minting a higher-level badge burns the lower-level one, and CARV covers all minting gas fees. * *Use Case:* [*Armour Achievements Badges*](https://carv.io/games/carv_armour/detail/badges) * **Event Badges**: Event badges mark your participation in CARV or game project events. Complete all event quests, you can earn an event badge and accompanying rewards. * *Use Case: BNB CARVnival \[*[*Read more*](https://medium.com/@Carv/bnb-game-carvnival-overview-3f00368f06ec)*]* * *Use Case: Web3 Summer Game Fest with Most Anticipated Games of the Year \[*[*Read more*](https://medium.com/carv-official/unleash-your-spirit-with-web3-summer-game-fest-75e4eed8fdd4)*]* * **Membership Badges**: These badges indicate your membership in a DAO (Decentralized Autonomous Organization) or organization. Eligibility is managed by the organization's manager via whitelisting. Membership badges are revocable and non-transferable. You can choose badge images from the provided stock options, ensuring uniqueness. CARV covers all minting gas fees. * *Use Case: Wolves DAO Membership PFP - Proof of Influence in Web3 Gaming \[*[*Read More*](https://medium.com/carv-official/proof-of-influence-credential-in-web3-gaming-wolves-dao-membership-soulbound-tokens-sbts-223572043796)*]* * **Generative Archive Tokens (GAT)**: GAT is a unique gaming credential that continually captures and preserves your gaming achievements and cherished memories. It serves as a depot for your hard-earned accolades, creating an immutable record. Here:"**Generative**" means that GAT is dynamically generated based on your individual in-game data and game accomplishments, adapting and evolving alongside your gaming journey."**Archive**" represents that it is a permanent record where your gaming achievements and memories are preserved and you retain full ownership."**Token**" indicates GAT's existence and storage on the blockchain, ensuring its authoritative verification, enduring preservation, and immutability. * *Why Is CARV GAT Special? And How Do You GAT IT!* [*\[Read More*](https://medium.com/carv-official/carv-gat-gat-all-your-gaming-memories-and-moments-62117383bbda)*]* <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2FROcKDyCdcmoOUerDWJ2b%2FCARV%20GAT.jpg?alt=media&amp;token=ab71b6d6-c966-49e2-80d4-702f1c7b9722" alt=""><figcaption><p>Why CARV GAT</p></figcaption></figure> #### **NFT Badge CARV (Mint) and Gas Fee Explained** When CARV (minting) NFT badges in an event on CARV, gas fee is paid to blockchains. CARV provides options for events hosts to choose whether they would cover gas fee for users: * **Gasless CARV (Mint):** Gasless minting means you don't need to pay the gas fee. Instead, it's covered by the event host or CARV, with a 'Gasless' label on the event page. <figure><img src="https://758822945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6A1MZN6YkMg4U1B64H4g%2Fuploads%2Fy9F0BU0buBt9en5k3xGB%2Fimage.png?alt=media&amp;token=a2e12792-009e-4937-a35b-5b519ba6062d" alt="Gasless Minting" width="240"><figcaption><p>CARV Gasless Minting</p></figcaption></figure> * **CARV (Mint) with Gas Fee**: When minting a badge, you need pay gas fee with your wallet balance. This requires you to sign the transaction with your wallet, e.g., MetaMask.&#x20; * **Gasless with Gas Card**: Not covered by event host, yet you can still enjoy a gasless experience by using the Gas Card. A gas card is a prepaid asset on CARV Play. Obtain it by:&#x20; * Advancing your [CARV Pass](https://carv.io/carvpass) to critical levels * Participating in raffles or direct purchase in CARV shop with GEMs, in-platform currency #### **Vibrant** [**Events**](https://carv.io/events) **and Fruitful Rewards** CARV Play, with gaming partners, runs various events on the [Event page](https://carv.io/events), including social events, in-game activities, live streams, AMA sessions, beta tests, global cultural festivals, and more, all with exclusive rewards. Furthermore, CARV hosts themed events, such as [collaborations with ecosystems like zkSync](https://medium.com/carv-official/ignite-the-new-era-embrace-the-carv-x-zksync-collaboration-celebration-304160bbb233), themed events like [the Shooting Game Battlefield](https://medium.com/carv-official/unleash-the-action-shooting-game-battlefield-66058990cadc), and web2 game events including [Steam Frenzy Hours](https://medium.com/carv-official/join-steam-frenzy-hours-power-up-your-carv-pass-journey-by-playing-csgo-dota2-baldurs-gate-3-bf33c9fda604). Joining these events and completing quests earns you rewards like GEMs, USDT, NFTs, and more! The GEMs you earn during events can be directly used to redeem various rewards in CARV shop, including physical rewards, gift cards, in-game NFTs, profile frames, etc. In addition to the above, SBT Badges CARVed are your
프로젝트로 돌아가기