As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [corda]

PROGRAMMING questions about the open-source Corda DLT platform and associated CorDapps you are writing. GENERAL SUPPORT FOR CorDapps IS OFF-TOPIC. Corda is a distributed ledger platform designed to record, manage and automate legal agreements between business partners. Many of your questions are likely to already be addressed on the Corda docsite.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

How to start remote flow class using RPC in Springboot remote server

Given that I have Remote Springboot Server that receives HTTP Json from a React Front End. When the ExampleFlow.Intiaitor.class is compiled/deployed in the Cordapp in the participant's node. Then how ...
Adrian's user avatar
  • 915
0 votes
0 answers
10 views

corda - sort based on value in specific order

we have a use case wherein i need to sort states based on value. Say i have column 'Occupation' and it has values 'Doctor', "Engineer', "Artist'. I need to sort all states , such that all ...
 Gomathi priya's user avatar
-1 votes
1 answer
62 views

Corda totalStatesAvailable value in vaultQuery

I am trying to get consumed states using below queryCriteria. And I know that only consumed states will be present in vault for this particular State class var criteria: QueryCriteria = ...
Benjamin's user avatar
  • 103
0 votes
0 answers
11 views

CORDA-4.9.5-COLLABORATIVE-RECOVERY : Unable to recover data

the steps we have tried are listed below, -Enabled drain mode in nodes -Installed collaborative recovery binaries in all nodes  -On runnning flow list all the flows were listed -Backup was created for ...
krishna.nitheesh's user avatar
0 votes
0 answers
19 views

Corda 5.0 centralized vs decentralized

Corda supported a decentralized model until 4.x The Corda 5.0 model is about virtual nodes and seems to go away from the decentralized model. How does this dilute the decentralized model where every ...
user3760894's user avatar
1 vote
0 answers
18 views

Unable to import the net.corda.finance modules in corda

I am trying to add cash flow to the example corda app, however I am unable to import the net.corda.finance packages in the clients/controller file (referring 1st screenshot attached). It does not ...
Smog's user avatar
  • 39
1 vote
1 answer
43 views

Does Corda State entries will be removed from persistent schema once that particular state is consumed?

As I understand all states instances created of a particular state (say CarState) will be there in the mapped persistent schema table. My question is, will it stays there once an instance is consumed ...
Benjamin's user avatar
  • 103
0 votes
0 answers
9 views

Corda Private Network connectivity

We are having one private corda network setup and our Cordapp is deployed in the network and its working fine, so now we have a requirement to integrate with another private network. Basically we need ...
MerBas's user avatar
  • 65
-1 votes
2 answers
116 views

Kotlin type erasure error in corda state migration

I have a Corda State CarA having field drivers: Set<CustomDriverClass>. But in next version, I want to change the datatype of Set<CustomDriverClass> with Set<String>. But corda doesn'...
Benjamin's user avatar
  • 103
0 votes
1 answer
49 views

Is it possible to kill hanging Flows in a corda node via another node?

I have a scenario, where partyA rpc connection is not available on client side and all calls are forwarded via another corda node using flows. Is it possible to kill hanging flows in PartyA node from ...
Benjamin's user avatar
  • 103
0 votes
0 answers
22 views

I am getting started with Corda5, when I execute the command "./gradlew runPartyAServer", throws SLF4J: Class path contains multiple SLF4J bindings

SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/cc-dev/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-slf4j-impl/2.17.1/...
Kumel's user avatar
  • 1
0 votes
0 answers
9 views

Cordapp Certificates for signing and interaction

I am working with cordaapp. I am trying to understand the different certificates that get used here. Which certificate is used for signing contracts.jar and how to configure it? Which certificates ...
Swaraj Shekhar's user avatar
0 votes
0 answers
32 views

How to create a cordApp custom serializers and how to use that class for de-serializing the state object

I have the state class data class ExampleState{ val a: Set<UUID> val b:Int } We have the data in the existing database of this state class we need to preserve the data in DB in old version of ...
Manikanta Reddy A's user avatar
0 votes
1 answer
23 views

Is it possible to configure a corda node to do p2p communication via outbound proxies?

I read nodes communicate with each other using TCP/IP. But if the nodes are located behind a firewall or proxy server. Can we configure the node to use this proxy setting to connect to other node in ...
Benjamin's user avatar
  • 103
0 votes
1 answer
44 views

What is the difference in deserialization of state vault data in corda node while retrieving using vault query versus using in a transaction?

I was trying to understand the Corda behaviour, while removing a state field and did migration without cleaning vault data. Interestingly, I found that removed field is completely ignored while doing ...
Benjamin's user avatar
  • 103
0 votes
1 answer
58 views

Don't we need DeprecatedConstructorForDeserialization() In Corda State while deleting a state field for 4.9 Enterprise version?

I was trying to test some deletion scenarios of fields in a Corda state. But I was wondered that it doesn't throw deserialisation error while retrieving the older data, even without providing ...
Benjamin's user avatar
  • 103
0 votes
1 answer
62 views

Subflow versus single flow calling while migration of 2000 states

I want to update 2000 corda states of CarState while migrating from V1 to V2. In order to write a flow for that, two ways I can think of: Write two flows, which first flow get all the 2000 carstates ...
Benjamin's user avatar
  • 103
0 votes
1 answer
23 views

in corda enterprise- can we use IBM MQ for standalone artemis server?

I have gone through https://docs.r3.com/en/platform/corda/4.7/enterprise/node/corda-firewall-component.html#standalone-artemis-server but just need to check will IBM MQ work?
kety's user avatar
  • 95
0 votes
1 answer
40 views

serviceHub.startFlow from a cordaService class versus subFlow calling from Corda flow

Is there a difference in calling one flow as subflow from another corda flow versus calling the same flow from a cordaservice class as serviceHub.startFlow? In terms of thread utilization or ...
Benjamin's user avatar
  • 103
0 votes
1 answer
261 views

How to copy the the data from one Table to another Table Using Liquibase scripts

I want to know the solution for the below Test ( to copy the the data from one Table to another Table) using Liquibase a part of Corda. Case: As part of I want to create a new table into an existing ...
Manikanta Reddy A's user avatar
2 votes
1 answer
51 views

R3 Corda: how to share historical facts with newly added nodes?

Been reading up on Corda (no actual use yet) and other DLTs to see if we could use it in a project. What I was wondering after reading all the Corda key concepts: what would be the way to share data ...
Matthias's user avatar
  • 808
0 votes
2 answers
232 views

Want to replace old liquibase migration script file with new ones

I am using liquibase scripts with Cordapp. And previously the first version databaseChangeLog file was having all table creations in one single change set and in a later point of time we have split it ...
Benjamin's user avatar
  • 103
0 votes
0 answers
60 views

initialize Issue about Corda's flow test

I am trying to implement a flow test for my corda app written in java, but when I start to run a sample test to have a start I find this error: Could not initialize plugin: interface org.mockito....
江小白's user avatar
0 votes
1 answer
23 views

How to share state with other nodes in corda

Suppose there are 3 nodes: Alice, Bob, Daniel. Normaly if Alice and Bob shares some facts, daniel will not know. So how to share those facts with daniel.
Rifat's user avatar
  • 1
0 votes
0 answers
26 views

Corda Transaction - unable to save linked states

I would like to ask if it is possible to save (to be produced by transaction) more states that are linked to each other. Let's assume following case (it is simplified to be more readable): States: ...
Jan Horký's user avatar
0 votes
1 answer
58 views

Does a Corda node communication with Notary is same as in case of another peer node?

TLS connections Corda uses TLS to encrypt the peer to peer connections between nodes. It can be shown that the maximal throughput that is achievable with the JVM TLS layer can limit the node ...
Benjamin's user avatar
  • 103
0 votes
0 answers
43 views

Corda Jmeter Performance testing takes more time for first sampler inside Thread group (all are Java Request Samplers)

I followed https://docs.r3.com/en/platform/corda/4.9/enterprise/performance-testing/jmeter-samplers.html & used JAVA request samplers instead of http samplers, so that the Corda flow class can be ...
Benjamin's user avatar
  • 103
0 votes
1 answer
14 views

Passing StateAndRef in nodeshell Start command

I am trying to start shareAccountInfo from node shell, shareAccountInfo expecting two values acccountInfo and recipients . AccountInfo expects StateAndRef<com.r3.corda.lib.accounts.contracts.states....
MerBas's user avatar
  • 65
0 votes
1 answer
25 views

Corda 4- Due Diligence App issue while sharing auditing result

I am running duediligence-cordapp from corda Github repository, there are certain steps given in README file which I am following however when I reach to second half of Step 3 where I need to run flow ...
Ashwani Kumar's user avatar
0 votes
1 answer
56 views

InsufficientBalanceException("Insufficient spendable states identified for $requiredAmount.")

I am getting the below CordaRunTime Exception InsufficientBalanceException: Insufficient spendable states identified for $requiredAmount. when i tried to execute a transaction by transferring "...
Manikanta Reddy A's user avatar
0 votes
1 answer
33 views

Calling subFlow inside a main flow to update the same state in corda

Here in the main flow which is updating the ContainerState, and I just tried to call a subFlow of another UserDefined flow which is also updating attribute of same state. (I know, it can be done in ...
Benjamin's user avatar
  • 103
1 vote
1 answer
19 views

Corda CorDapps only on a subset of nodes

I am relatively new to Corda and stumbled upon a question that I am not able to find a clear answer to. In my understanding a CorDapp is the entirety of Contract,State and Flows regarding a specific ...
Florian Scheunert's user avatar
0 votes
2 answers
21 views

How to use class QueryCriteria?

someone can help me with this section of code? How to fix it? The error is:
bagassprtm's user avatar
0 votes
1 answer
78 views

Corda - PageSpecification in QueryBy

In R3 Corda queryBy(), is page specification, other than default-200 is only needed, if there are more results to be returned based on given querycriteria OR It is needed even if all criterias not ...
Benjamin's user avatar
  • 103
0 votes
0 answers
33 views

Where is R3 Corda Flow AMQP durable queue storage?

Given a payload that needs to be transmitted to another node during a Corda flow via send and sendAndReceive Does it get persisted anywhere in any form (durable or transient?) during the transmission ...
Adrian's user avatar
  • 915
0 votes
0 answers
12 views

R3 Corda, how to change debug port of a node?

how to change debug port of a node? When I try to execute runnodes for my project, the Notary Node run on debug port 5007. Starting corda.jar in D:\test-bagas\cordapp-example\build\nodes\Notary on ...
bagassprtm's user avatar
1 vote
1 answer
38 views

Corda community version with SQL or NoSQL database connection for node and notary

How can I save the txns details into DB for each node and notary? I am using the Corda community 4.9 version.
Ajit Raju's user avatar
0 votes
1 answer
28 views

The transaction currently built is missing an attachment for class - Attempted to find a suitable attachment but could not find any in the storage

Full Error: transactions.TransactionBuilder. - The transaction currently built is missing an attachment for class: com/gibtn/corda/printutilities/PrintLedgerTransaction. Attempted to find a suitable ...
Tywin Lannister's user avatar
0 votes
1 answer
37 views

Corda flow exception: net.corda.core.flows.NotaryFlow$Client is not registered

Scenario: running 2 Corda nodes (say, A and B) that are running within a larger zone. There is 1 notary node in the zone. I have 2 different flows: the first flow f1 only runs on node A and only ...
SilverTear's user avatar
0 votes
0 answers
26 views

Corda transactions happens between 2 node? is there a way we can do a transaction between more then 2 nodes? [duplicate]

I want to perform transaction between more then two nodes: e.g. Loan of 1 Million will be given by 2 payer to a issue A, B, C will share the loan amount by 20%, 40% and 40% to a issuer D Flow should ...
Ajit Raju's user avatar
0 votes
1 answer
13 views

In R3 Corda, how to show error message when we trigger flow from command prompt?

I want to show the error message in command prompt with this code: public SignedTransaction call() throws FlowException { Party centralBank = getServiceHub().getNetworkMapCache()....
bagassprtm's user avatar
0 votes
1 answer
32 views

Best way to add a new Node a existing Corda blockchain

I am new to blockchain and currently doing POC for learning and some solution. I want to add a new node to my existing Corda blockchain. e.g I have 3 nodes A, B, C, and one Notary, I want to add ...
Ajit Raju's user avatar
0 votes
1 answer
64 views

In R3 Corda, how to trigger another node to run specific flow inside on a flow?

I have this code, i want to trigger another node to run specific flow inside on a flow. When Requester Node run the IssuanceFlow, I want some code in that flow when it will trigger the Approver Node ...
bagassprtm's user avatar
0 votes
0 answers
16 views

AttachmentSortAttribute is not on the whitelist or annotated with @CordaSerializable

When I query Attachments through RPC I get the following error: net.corda.client.rpc.RPCException: Class "class net.corda.core.node.services.vault.AttachmentSort$AttachmentSortAttribute" is ...
Tywin Lannister's user avatar
0 votes
1 answer
34 views

Can we create same name account on different nodes in corda?

I am facing the error when I transfer token from one node to another node account in corda. Here first I create account i.e. ACCOUNT1 on PartyA node which is shared with all nodes. Then, I create ...
Prity Sharma's user avatar
0 votes
1 answer
83 views

How to query all NFts for a given account?

I'm using both the Accounts and Tokens SDK. After creating a NFT using a flow, I need to list all the NFTs this account has in the backend. CreateNFTHouseTokenFlow.kt @StartableByRPC class ...
Ricardo Passos's user avatar
0 votes
1 answer
25 views

Scheduler and Vault Failed to record transaction

I'm quite new with Corda. I want to do a Scheduler, is like a Todo List that check if the Task is assigned every 30 seconds. I use the Java Template without any specific configuration, the database is ...
Andrea Mucci's user avatar
0 votes
1 answer
50 views

Error while redeeming fungible token in corda

I am trying a scenario where Party A issues a token to Party B Party B will move that token to Party C Party C move that token again to Party A Party A try to redeem it I am facing issues while ...
Sil's user avatar
  • 25
0 votes
1 answer
25 views

Tokens SDK - What's the difference between inlined and initiating flows?

I'm following along the documentation about the Tokens SDK: https://github.com/corda/token-sdk/blob/master/docs/IWantTo.md#issuing-tokens My question is fairy simple: what's the difference between ...
Ricardo Passos's user avatar
0 votes
1 answer
58 views

CAPSULE EXCEPTION when trying to run multiple corda nodes

I'm deploying two Corda nodes to a production server following this official guide. I used systemd to manage the two node services. After I've successfully started one node, another node cannot start ...
McXD's user avatar
  • 17

1
2 3 4 5
47