2 votes
Accepted

How to securely call Blockfrost or other API service from Smart Contract?

You can't call API services directly from the smart contract, and this is not something that the "IOG has yet to put that functionality in"; the same behaviour is not possible in any other ...
user avatar
  • 392
2 votes
Accepted

How to Securely Serialise a Plutus Smart Contract Endpoint?

before I can answer there is an important distinction that must be done on-chain code can be serialized, off-chain code stays "off the chain" so there is nothing to serialize so if you are ...
user avatar
  • 392
2 votes
Accepted

Is possible to create a cNFT that depends on 'proof of ownership' in order to be own by a wallet?

To my understanding, by "proof of ownership" you are referring to the user owning a physical object, and this smart contract should keep track of the real-world ownership via NFTs. before I ...
user avatar
  • 392
2 votes
Accepted

How to Make Sure A Contract Is Signed By a Certain Party?

So, at a high level, you can't make any restrictions on who can create a script, or submit datums to a script address. You can only put restrictions on who can "spend" datum utxos at the ...
user avatar
1 vote

Is there a way to see which Plutus code is deployed on a specific script address?

Edit I just realized I misunderstood your question, you are searching for a way to get the Plutus code starting from an address, not to get and address from your Plutus code! I'm leaving the old ...
user avatar
  • 392
1 vote

How expressive & secure is the Plutarch eDSL?

I'm approaching the tool so I would not consider myself a Plutarch expert however to my understanding, Plutarch is designed to be compatible with the entire PlutusTx API since the real code of smart ...
user avatar
  • 392
1 vote

Advanced Payment Integration

my two cents, so if I am correct you want that a party can commit to paying and have the ability to cancel the service (and thus payment) without inflicting fee's. Possibly you also would want an ...
user avatar
  • 896
1 vote

How can I check the origin of a Token?

the token is present in your wallet as "<policy-id>.<token-name-hex-ascii>" if you want to check only for a specific smart contract (minting policy) to be the one which minted ...
user avatar
  • 392
1 vote
Accepted

Where Do I Go To Find All The ScriptContexts Feilds and Functions?

here it is: https://playground.plutus.iohkdev.io/doc/haddock/plutus-ledger-api/html/Plutus-V1-Ledger-Contexts.html a little hint to use the docs: usually when I'm searching for some module I press ...
user avatar
  • 392
1 vote
Accepted

Whats the function to get the current time in Plutus?

each transaction on Cardano has a ttl (Time To Live) determined in the moment of transaction creation, it can't be submitted outside that interval, and even if the transaction is submited, other node ...
user avatar
  • 392
1 vote

Is there a place where we can find the Haskell library for Marlowe?

With some research, the Haskell libraries for Marlowe seems to be here precisely.
user avatar
1 vote

Is there a place where we can find the Haskell library for Marlowe?

What you are looking for is the repo where the Marlowe lang is implemented, more specifically the data constructor that you show is defined in the Observation data type: data Observation = AndObs ...
user avatar
  • 446
1 vote
Accepted

Whats Your Mental Model For Monads?

Just read one definition: A monad is just the minimal amount of structure needed to overload a function composition in a way that performs an extra computation on the intermediate value. My ...
user avatar
1 vote
Accepted

ADA handle NFT royalty address

This is possible. You can make a script address where royalties are send to with an Ada handle in the datum. The script only permits grabbing those funds if the corresponding ada handle is part of the ...
user avatar
  • 896
1 vote

ADA handle NFT royalty address

AdaHandles are used to query the blockchain with either Block Frost or DB-Sync to find the wallet containing the NFT, in this case it would depend on how the marketplace uses the metadata in the CIP-...
user avatar
1 vote
Accepted

How to Get the Script Address of A Smart Contract?

There's multiple ways to do it. For example using cardano-addresses or Pycardano library Pycardano: script_cbor_hex = '...' script = cbor2.loads(bytes.fromhex(script_cbor_hex)) script_hash = ...
user avatar
  • 88
1 vote

What are the options for Bitcoin integration on Cardano?

If I am understanding this correctly you wish for: users to be able to move assets (Having BTC deposited on Cardano Smart Contracts Would mean doing this) Have a smart contract that enables ...
user avatar
1 vote

What are the options for Bitcoin integration on Cardano?

There's a great read here on one possible approach to such an integration: https://medium.com/@anetaBTC/anetabtc-litepaper-v1-0-171f29b3276a Basically there is a piece of software - the bridge - that ...
user avatar
  • 1,019
1 vote

Referencing (U)TxO's

The referencing of UTxO is decribed in the CIP 31 (1). There it is stated that Referencing an output still requires the output to be presented as part of the transaction and be unspent, so ...
user avatar
  • 896

Only top scored, non community-wiki answers of a minimum length are eligible