makeUnsignedContractDeploy
Usage
import {
makeUnsignedContractDeploy,
TransactionSigner,
ClarityVersion,
} from '@stacks/transactions';
const codeBody = `
(define-public (say-hello)
(ok "hello world"))
`;
const transaction = await makeUnsignedContractDeploy({
contractName: 'hello-world',
codeBody,
publicKey: '034f355bdcb7cc0af728ef3cceb9615d90684bb5b2ca5f859ab0f0b704075871aa',
network: 'testnet',
fee: 10000n,
nonce: 0n,
clarityVersion: ClarityVersion.Clarity3,
});
// Sign later
const signer = new TransactionSigner(transaction);
signer.signOrigin('b244296d5907de9864c0b0d51f98a13c52890be0404e83f273144004b81874603');Notes
Signature
Returns
Parameters
txOptions (required)
Last updated
Was this helpful?