when I create actions like this,and prapare to use JsSignatureProvider to sign

  let actions = [{
    account: 'tommy',
    name: 'hi',
    authorization: [{
      actor: 'tommy',
      permission: 'active',
    data: {
      user: 'tommy'
  let seActions = await api.serializeActions(actions)   

 let seActions =  api.serializeActions(tx) ;

but nodejs report this error:

TypeError: actions.map is not a function

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.