@onflow/six-remove-key

0.1.1 • Public • Published

@onflow/six-remove-key

Stored Interaction for removing a key on an Account on Flow.

Status

  • Last Updated: April 10 2024
  • Stable: No
  • Risk of Breaking Change: Very High

Known Upcoming Changes:

  • Potential changes to all aspects of Stored Interactions

Install

npm install @onflow/six-remove-key

Usage:

import * as fcl from "@onflow/fcl"
import { template as addNewKey } from "@onflow/six-remove-key"

fcl.config().put("accessNode", "http://localhost:8080");

const response = await fcl.send([
    addNewKey({
        proposer: fcl.currentUser().authorization,
        authorization: fcl.currentUser().authorization,     
        payer: fcl.currentUser().authorization,             
        keyIndex: 1 
    })
])

Hashing

Hashing Code:

    console.log(crypto.createHash('sha256').update(CODE, 'utf8').digest('hex'))

Readme

Keywords

none

Package Sidebar

Install

npm i @onflow/six-remove-key

Homepage

onflow.org

Weekly Downloads

3

Version

0.1.1

License

Apache-2.0

Unpacked Size

14.7 kB

Total Files

16

Last publish

Collaborators

  • bthaile
  • jribbink
  • nialexsan
  • han210
  • gregorggg
  • chasefleming
  • dapperj
  • gregsantos
  • dapper_labs
  • jeffreydoyle
  • harry.eth
  • turbolent_flow