import ( "github.com/skycoin/skycoin/src/coin" "github.com/skycoin/skycoin/src/cipher" ) func main() { tx := coin.Transaction{} sprivkey, _ := cipher.GenerateKey() tx.PushInput(coin.TransactionInput{ Hash: cipher.SHA256([]byte("hash1")), Address: cipher.AddressFromPubKey(sprivkey.PublicKey), Coins: coin.NewBalance(100), Unlocker: sprivkey, }) tx.PushInput(coin.TransactionInput{ Hash: cipher.SHA256([]byte("hash2")), Address: cipher.AddressFromPubKey(sprivkey.PublicKey), Coins: coin.NewBalance(200), Unlocker: sprivkey, }) }In this code, we first initialize a new transaction object. Then, we generate a secret key and use it to create two transaction inputs. The inputs specify the hash of the coins being spent, the public key of the spender, and the amount of coins being spent. Finally, we unlock the inputs with the secret key and add them to the transaction object using the PushInput method.