transaction

package
v0.0.0-...-e701cd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitcoinTx

type BitcoinTx struct {
}

func (*BitcoinTx) PrepareBitcoinSignedTransaction

func (b *BitcoinTx) PrepareBitcoinSignedTransaction(testnet bool, body request.TransferBtcBasedBlockchain) (string, error)

*

  • Sign Bitcoin transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @returns transaction data to be broadcast to blockchain.

func (*BitcoinTx) SendBitcoinTransaction

func (b *BitcoinTx) SendBitcoinTransaction(testnet bool, body request.TransferBtcBasedBlockchain) *common.TransactionHash

*

  • Send Bitcoin transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @returns transaction id of the transaction in the blockchain

type EthTx

type EthTx struct {
}

func (*EthTx) PrepareCustomErc20SignedTransaction

func (b *EthTx) PrepareCustomErc20SignedTransaction(testnet bool, body request.TransferCustomErc20, provider string) (string, error)

*

  • Sign Ethereum custom ERC20 transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction data to be broadcast to blockchain.

func (*EthTx) PrepareDeployErc20SignedTransaction

func (b *EthTx) PrepareDeployErc20SignedTransaction(testnet bool, body request.DeployEthErc20, provider string) (string, error)

*

  • Sign Ethereum deploy ERC20 transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction data to be broadcast to blockchain.

func (*EthTx) PrepareEthOrErc20SignedTransaction

func (b *EthTx) PrepareEthOrErc20SignedTransaction(testnet bool, body request.TransferEthErc20, provider string) (string, error)

*

  • Sign Ethereum or supported ERC20 transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction data to be broadcast to blockchain.

func (*EthTx) PrepareStoreDataTransaction

func (b *EthTx) PrepareStoreDataTransaction(testnet bool, body request.CreateRecord, provider string) (string, error)

*

  • Sign Ethereum Store data transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction data to be broadcast to blockchain.

func (*EthTx) SendCustomErc20Transaction

func (b *EthTx) SendCustomErc20Transaction(testnet bool, body request.TransferCustomErc20, provider string) *response.TransactionHash

*

  • Send Ethereum custom ERC20 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction id of the transaction in the blockchain

func (*EthTx) SendDeployErc20Transaction

func (b *EthTx) SendDeployErc20Transaction(testnet bool, body request.DeployEthErc20, provider string) *response.TransactionHash

*

  • Send Ethereum deploy ERC20 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction id of the transaction in the blockchain

func (*EthTx) SendEthOrErc20Transaction

func (b *EthTx) SendEthOrErc20Transaction(testnet bool, body request.TransferEthErc20, provider string) *response.TransactionHash

*

  • Send Ethereum or supported ERC20 transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction id of the transaction in the blockchain

func (*EthTx) SendStoreDataTransaction

func (b *EthTx) SendStoreDataTransaction(testnet bool, body request.CreateRecord, provider string) *response.TransactionHash

*

  • Send Ethereum store data transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the Ethereum Server to connect to. If not set, default public server will be used.
  • @returns transaction id of the transaction in the blockchain

type LitecoinTx

type LitecoinTx struct {
}

func (*LitecoinTx) PrepareLitecoinSignedTransaction

func (b *LitecoinTx) PrepareLitecoinSignedTransaction(testnet bool, body request.TransferBtcBasedBlockchain) (string, error)

*

  • Sign Litcoin transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @returns transaction data to be broadcast to blockchain.

func (*LitecoinTx) SendLitecoinTransaction

func (b *LitecoinTx) SendLitecoinTransaction(testnet bool, body request.TransferBtcBasedBlockchain) *common.TransactionHash

*

  • Send Litecoin transaction to the blockchain. This method broadcasts signed transaction to the blockchain.
  • This operation is irreversible.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @returns transaction id of the transaction in the blockchain

type VetTx

type VetTx struct {
}

func (*VetTx) PrepareVetSignedTransaction

func (v *VetTx) PrepareVetSignedTransaction(testnet bool, body request.TransferVet, provider string) (string, error)

*

  • Sign VeChain transaction with private keys locally. Nothing is broadcast to the blockchain.
  • @param testnet mainnet or testnet version
  • @param body content of the transaction to broadcast
  • @param provider url of the VeChain Server to connect to. If not set, default public server will be used.
  • @returns transaction data to be broadcast to blockchain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL