Skip to content

can you put the contract creation and the first input in a single transaction ? #154

Answered by jhbertra
albert-kevin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Kevin,

This is not currently possible using the APIs. We are working on adding support for arbitrary initial state, which will allow you to set up a contract with initial account balances, let-bindings, and choice values. This would add support for what you are asking about more directly. It also sidesteps some of the ambiguities involved with actually applying an input in the create transaction, such as how, if at all, to authenticate actions by parties, and what to do with the timeout information.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by albert-kevin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants