Transaction Format

type Transaction struct {
	from common.Address
	to common.Address 
	nonce uint64
	amount *big.Int
	gasLimit uint64
	gasPrice *big.Int 
	data []byte
  • from: address of the transaction sender

  • to: address of the transaction destination. Palette manages a fixed, non-repeated effective address internally, and implements the routing relationship between contract addresses and native contract objects through a native contract router. it should be empty bytes array or nil when deploying the NFT asset contract.

  • nonce: sequence of the transaction sender account.

  • data: transaction payload, this field should be empty bytes array or nil while deploying NFT asset contract.

  • gasPrice: The value for gas price on the Palette chain should be 0.

Last updated