Created at 8pm, Jan 4
DadallyCrypto
1
Ethereum Whitepaper
qc3FwK11wo9AKtIOJhJqsOJNdXGSJwv5dNS5TW2giQQ
File Type
PDF
Entry Count
105
Embed. Model
jina_embeddings_v2_base_en
Index Type
hnsw
Users would thus need to "activate" their accounts with ether, but once the ether is there it would be reusable because the contract would refund it each time.
id: 477a30161e33b2aa34f0541a987c00a9 - page: 20
Financial derivatives and Stable-Value Currencies Financial derivatives are the most common application of a "smart contract", and one of the simplest to implement in code. The main challenge in implementing financial contracts is that the majority of them require reference to an external price ticker; for example, a very desirable application is a smart contract that hedges against the volatility of ether (or another cryptocurrency) with respect to the US dollar, but doing this requires the contract to know what the value of ETH/USD is. The simplest way to do this is through a "data feed" contract maintained by a specific party (eg. NASDAQ) designed so that that party has the ability to update the contract as needed, and providing an interface that allows other contracts to send a message to that contract and get back a response that provides the price. Given that critical ingredient, the hedging contract would look as follows: 1. Wait for party A to input 1000 ether.
id: 1a31d9109113a84cf115892225dbe682 - page: 20
2. Wait for party B to input 1000 ether. 3. Record the USD value of 1000 ether, calculated by querying the data feed contract, in storage, say this is $x. 4. After 30 days, allow A or B to "ping" the contract in order to send $x worth of ether (calculated by querying the data feed contract again to get the new price) to A and the rest to B.
id: 204cfd3aa372a59b48383833ef042ba0 - page: 20
Page 20 ethereum.org Such a contract would have significant potential in crypto-commerce. One of the main problems cited about cryptocurrency is the fact that it's volatile; although many users and merchants may want the security and convenience of dealing with cryptographic assets, they many not wish to face that prospect of losing 23% of the value of their funds in a single day. Up until now, the most commonly proposed solution has been issuer-backed assets; the idea is that an issuer creates a sub-currency in which they have the right to issue and revoke units, and provide one unit of the currency to anyone who provides them (offline) with one unit of a specified underlying asset (eg. gold, USD). The issuer then promises to provide one unit of the underlying asset to anyone who sends back one unit of the crypto-asset. This mechanism allows any non-cryptographic asset to be "uplifted" into a cryptographic asset, provided that the issuer can be trusted.
id: df792c548432194f765a61c5ec6374c6 - page: 20
How to Retrieve?
# Search

curl -X POST "https://search.dria.co/hnsw/search" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"rerank": true, "top_n": 10, "contract_id": "qc3FwK11wo9AKtIOJhJqsOJNdXGSJwv5dNS5TW2giQQ", "query": "What is alexanDRIA library?"}'
        
# Query

curl -X POST "https://search.dria.co/hnsw/query" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"vector": [0.123, 0.5236], "top_n": 10, "contract_id": "qc3FwK11wo9AKtIOJhJqsOJNdXGSJwv5dNS5TW2giQQ", "level": 2}'