Ios 使用未解析标识符GethNewTransaction
使用go ethereum iOS框架,我正在尝试创建一个新事务。使用GethNewTransaction我得到一个错误(使用未解析的标识符GethNewTransaction) 这里有一个例子: 我的代码:Ios 使用未解析标识符GethNewTransaction,ios,swift,xcode,frameworks,ethereum,Ios,Swift,Xcode,Frameworks,Ethereum,使用go ethereum iOS框架,我正在尝试创建一个新事务。使用GethNewTransaction我得到一个错误(使用未解析的标识符GethNewTransaction) 这里有一个例子: 我的代码: // Create a new account to sign transactions with var error: NSError? var signer: GEGethAccount?; try! ks?.newAccount("Signer password", ret0_: &
// Create a new account to sign transactions with
var error: NSError?
var signer: GEGethAccount?; try! ks?.newAccount("Signer password", ret0_: &signer)
var to: GEGethAddress?; GEGethNewAddressFromHex("0x0000000000000000000000000000000000000000", &to, &error)
let tx = GethNewTransaction(1, to, GEGethNewBigInt(0), GEGethNewBigInt(0), GEGethNewBigInt(0), nil) // Random empty transaction
let chain = GEGethNewBigInt(1) // Chain identifier of the main net
这一行是错误的:
let tx = GethNewTransaction(1, to, GEGethNewBigInt(0), GEGethNewBigInt(0), GEGethNewBigInt(0), nil) // Random empty transaction
如何写入此行以创建新事务
let tx = GethNewTransaction(1, to, GEGethNewBigInt(0), GEGethNewBigInt(0), GEGethNewBigInt(0), nil) // Random empty transaction