Transaction gas payment missing

i want to send tx use address balance as gas, and i keep gas payment is empty, but i get the error Error checking transaction input objects: Transaction gas payment missing", details: b"\x08\x03\x12IErro, any help about this err, thanks

let tx = TransactionKind::ProgrammableTransaction(builder.finish());
    TransactionData::V1(TransactionDataV1 {
        kind: tx,
        sender,
        gas_data: GasData {
            payment: vec![], // Empty - use address balance for gas
            owner: sender,
            price: rgp,
            budget: 10_000_000,
        },
        expiration: TransactionExpiration::ValidDuring {
            min_epoch: Some(0),
            max_epoch: Some(0),
            min_timestamp: None,
            max_timestamp: None,
            chain: chain_id,
            nonce,
        },
    })

The Expiration of TranscationData is necessary

You need to fill in the min and max timestamps

1 Like