1.0.1 • Published 9 months ago

@wharfkit/transact-plugin-explorerlink v1.0.1

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
9 months ago

@wharfkit/transact-plugin-explorerlink

A plugin to display a link to a block explorer after a transaction has been completed.

Usage

When instantiating your Session Kit, ensure you have the explorer parameter defined on the ChainDefintion for each blockchain, and then add the TransactPluginExplorerLink as a transactPlugin.

import {TransactPluginExplorerLink} from '@wharfkit/transact-plugin-resource-provider'

const kit = new SessionKit({
    // ... all your other options
    chains: [
        {
            id: '73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d',
            url: 'https://jungle4.greymass.com',
            // Make sure to define the structure of an explorer link for each chain in your chain definitions.
            explorer: {
                prefix: 'https://jungle4.eosq.eosnation.io/tx/',
                suffix: '',
            },
        },
    ],
    // Include the explorer link plugin
    transactPlugins: [new TransactPluginExplorerLink()],
})

Developing

You need Make, node.js and yarn installed.

Clone the repository and run make to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint.


Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.

1.0.1

9 months ago

1.0.0

9 months ago

0.5.0

12 months ago

0.5.1

12 months ago

0.3.0

1 year ago

0.3.0-ui-16

1 year ago

0.3.0-ui-15

1 year ago

0.3.0-ui-14

1 year ago

0.1.0

1 year ago