diff --git a/docs/pages/v2/sources/n2n.mdx b/docs/pages/v2/sources/n2n.mdx index a42d0679..36f6d624 100644 --- a/docs/pages/v2/sources/n2n.mdx +++ b/docs/pages/v2/sources/n2n.mdx @@ -9,78 +9,28 @@ The following snippet shows an example of how to set up a typical N2N source: ```toml [source] type = "N2N" -address = ["Tcp", ""] -magic = - -[source.intersect] -type = -value = - -[source.mapper] -include_block_end_events = -include_transaction_details = -include_transaction_end_events = -include_block_cbor = +peers = [""] ``` ### Section `source`: - `type`: this field must be set to the literal value `N2N` -- `address`: a tuple describing the location of the tcp endpoint It must be specified as a string with hostname and port number. -- `magic`: the magic of the network that the node is running (`mainnet`, `testnet` or a custom numeric value) -- ~~`since`~~: (deprecated, please use `intersect`) the point in the chain where reading of events should start from. It must be specified as a tuple of slot (integer) and block hash (hex string) - -### Section `source.intersect` - -This section provides advanced options for instructing Oura from which point in the chain to start reading from. Read the [intersect options](../advanced/intersect_options.md) documentation for detailed information. - -### Section `source.mapper` - -This section provides a way to opt-in into advances behaviour of how the raw chain data is mapped into _Oura_ events. Read the [mapper options](../advanced/mapper_options.md) documentation for detailed information. +- `peers`: the location of the tcp endpoint It must be specified as a string with hostname and port number. ## Examples -Connecting to a remote Cardano node in mainnet through tcp sockets: - -```toml -[source] -type = "N2N" -address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"] -magic = "mainnet" -``` - -Connecting to a remote Cardano node in testnet through tcp sockets: +Connecting to a remote Cardano node through tcp sockets: ```toml [source] type = "N2N" -address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"] -magic = "testnet" +peers = ["relays-new.cardano-mainnet.iohk.io:3001"] ``` -Start reading from a particular point in the chain: - -```toml -[source] -type = "N2C" -address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"] -magic = "mainnet" +### Public relays -[source.intersect] -type = "Point" -value = [48896539, "5d1f1b6149b9e80e0ff44f442e0cab0b36437bb92eacf987384be479d4282357"] -``` +**Mainnet** `relays-new.cardano-mainnet.iohk.io:3001` -Include all details inside the transaction events: +**Preprod** `preprod-node.world.dev.cardano.org:30000` -```toml -[source] -type = "N2N" -address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"] -magic = "mainnet" - - -[source.mapper] -include_transaction_details = true -include_block_cbor = true -``` +**Preview** `preview-node.world.dev.cardano.org:30002`