elements icon indicating copy to clipboard operation
elements copied to clipboard

Write and sign custom transaction code

Open afeezaziz opened this issue 2 years ago • 2 comments

const customNetwork = {
  messagePrefix: 'Your_Message_Prefix', // Replace with the value from the configuration file
  bech32: 'your_bech32_prefix', // Replace with the value from the configuration file
  bip32: {
    public: 0x00000000, // Replace with the value from the configuration file
    private: 0x00000000, // Replace with the value from the configuration file
  },
  pubKeyHash: 0x00, // Replace with the value from the configuration file
  scriptHash: 0x05, // Replace with the value from the configuration file
};

I would need to fill up the variables as per the above, how can I achieve this by using elements? For context, I am using nigiri to run containerised elements, and I have made changes too to the configuration file i.e. elements.conf

How can I get these values for the element blockchain?

afeezaziz avatar Jan 19 '24 19:01 afeezaziz

Is there a way to build raw transaction without having access to a node all the time?

afeezaziz avatar Jan 24 '24 16:01 afeezaziz

const customNetwork = {
  messagePrefix: 'Your_Message_Prefix', // Replace with the value from the configuration file
  bech32: 'your_bech32_prefix', // Replace with the value from the configuration file
  bip32: {
    public: 0x00000000, // Replace with the value from the configuration file
    private: 0x00000000, // Replace with the value from the configuration file
  },
  pubKeyHash: 0x00, // Replace with the value from the configuration file
  scriptHash: 0x05, // Replace with the value from the configuration file
};

I would need to fill up the variables as per the above, how can I achieve this by using elements? For context, I am using nigiri to run containerised elements, and I have made changes too to the configuration file i.e. elements.conf

How can I get these values for the element blockchain?

I am not sure how can I get these values when following the tutorial.

afeezaziz avatar Feb 03 '24 11:02 afeezaziz